-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathCargo.toml
106 lines (92 loc) · 2.82 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
[package]
name = "roctogen"
version = "0.12.0"
authors = [ "Roctogen contributors" ]
description = "Github API and models generated from the official swagger OpenAPI specification"
license = "Apache-2.0"
homepage = "https://github.com/fussybeaver/roctogen"
repository = "https://github.com/fussybeaver/roctogen"
documentation = "https://docs.rs/roctogen"
readme = "README.md"
keywords = ["github"]
edition = "2021"
[workspace]
members = [
"examples/auth/*",
"examples/min-req-adapter",
"examples/search",
]
exclude = ["codegen/**"]
[lib]
crate-type = ["cdylib", "rlib"]
path = "src/lib.rs"
[features]
default = []
reqwest = ["dep:reqwest", "dep:bytes"]
# Activate mock base url
mock = []
[workspace.dependencies]
base64 = "0.22"
chrono = { version = "0.4", features = ["serde"] }
http = "1.1"
serde = "1.0"
serde_derive = "1.0"
serde_json = {version = "1.0"}
serde_urlencoded = { version = "0.7" }
thiserror = "1"
log = "0.4"
# wasm
cfg-if = { version = "1" }
wasm-bindgen = { version = "0.2.95", features = ["serde-serialize"] }
wasm-bindgen-futures = { version = "0.4" }
console_error_panic_hook = { version = "0.1.1" }
wee_alloc = { version = "0.4.2" }
js-sys = { version = "0.3" }
web-sys = { version = "0.3", features = [ 'Headers', 'Request', 'RequestInit', 'Response', 'ServiceWorkerGlobalScope', 'Window', 'console' ] }
console_log = { version = "1", features = ["color"] }
[dependencies]
base64.workspace = true
chrono.workspace = true
http.workspace = true
serde.workspace = true
serde_derive.workspace = true
serde_json.workspace = true
serde_urlencoded.workspace = true
thiserror.workspace = true
log.workspace = true
bytes = { version = "1", optional = true }
# reqwest
reqwest = { version = "0.12", optional = true, features = [] }
# ureq
ureq = { version = "3.0.0-rc2", optional = true, features = ["json"] }
# wasm
[target.'cfg(target_arch = "wasm32")'.dependencies]
cfg-if = { version = "1" }
wasm-bindgen = { version = "0.2.95", features = ["serde-serialize"] }
wasm-bindgen-futures = { version = "0.4" }
console_error_panic_hook = { version = "0.1.1" }
wee_alloc = { version = "0.4.2" }
js-sys = { version = "0.3" }
[target.'cfg(target_arch = "wasm32")'.dependencies.web-sys]
version = "0.3"
features = [
'Headers',
'Request',
'RequestInit',
'Response',
'ServiceWorkerGlobalScope',
'Window',
'console',
]
[target.'cfg(target_arch = "wasm32")'.dev-dependencies]
wasm-bindgen-test = "0.3.45"
console_log = { workspace = true, features = ["color"] }
[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies]
futures-lite = { version = "2.3" }
futures-io = { version = "0.3" }
futures-core = { version = "0.3" }
tokio = { version = "1.2", default-features = false, features = ["macros", "rt-multi-thread"] }
env_logger = "0.11"
[package.metadata.docs.rs]
default-target = "x86_64-unknown-linux-gnu"
targets = ["wasm32-unknown-unknown"]