fix: use different claim for wasi
Signed-off-by: Anton Whalley <anton@venshare.com>
This commit is contained in:
parent
38469b245d
commit
bc2593f226
10
Cargo.toml
10
Cargo.toml
|
@ -53,7 +53,7 @@ bytes = { version = "^1.0", optional = true }
|
||||||
futures = { version = "^0.3", optional = true }
|
futures = { version = "^0.3", optional = true }
|
||||||
http = { version = "0.2", optional = true }
|
http = { version = "0.2", optional = true }
|
||||||
hyper = { version = "^0.14", optional = true }
|
hyper = { version = "^0.14", optional = true }
|
||||||
axum-lib = { version = "^0.5", optional = true , package="axum"}
|
axum-lib = { version = "^0.5", optional = true, package="axum"}
|
||||||
http-body = { version = "^0.4", optional = true }
|
http-body = { version = "^0.4", optional = true }
|
||||||
poem-lib = { version = "=1.2.34", optional = true, package = "poem" }
|
poem-lib = { version = "=1.2.34", optional = true, package = "poem" }
|
||||||
nats-lib = { version = "0.21.0", optional = true, package = "nats" }
|
nats-lib = { version = "0.21.0", optional = true, package = "nats" }
|
||||||
|
@ -64,9 +64,15 @@ hostname = "^0.3"
|
||||||
[target.'cfg(all(target_arch = "wasm32", target_os = "unknown"))'.dependencies]
|
[target.'cfg(all(target_arch = "wasm32", target_os = "unknown"))'.dependencies]
|
||||||
web-sys = { version = "^0.3", features = ["Window", "Location"] }
|
web-sys = { version = "^0.3", features = ["Window", "Location"] }
|
||||||
|
|
||||||
|
[target."cfg(not(target_os = \"wasi\"))".dependencies]
|
||||||
|
hyper = { version = "^0.14", optional = true }
|
||||||
|
|
||||||
|
[target.'cfg(all(target_arch = "wasm32", target_os = "wasi"))'.dependencies]
|
||||||
|
hyper_wasi = { version = "0.15", features = ["full"], optional = true }
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
rstest = "0.6"
|
rstest = "0.6"
|
||||||
claim = "0.3.1"
|
claim = { git = "https://github.com/No9/rust-claim" }
|
||||||
version-sync = "0.9.2"
|
version-sync = "0.9.2"
|
||||||
serde_yaml = "0.8"
|
serde_yaml = "0.8"
|
||||||
rmp-serde = "1"
|
rmp-serde = "1"
|
||||||
|
|
Loading…
Reference in New Issue