fix: use different claim for wasi

Signed-off-by: Anton Whalley <anton@venshare.com>
This commit is contained in:
Anton Whalley 2023-01-05 02:40:28 +00:00
parent 38469b245d
commit bc2593f226
1 changed files with 8 additions and 2 deletions

View File

@ -53,7 +53,7 @@ bytes = { version = "^1.0", optional = true }
futures = { version = "^0.3", optional = true }
http = { version = "0.2", 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 }
poem-lib = { version = "=1.2.34", optional = true, package = "poem" }
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]
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]
rstest = "0.6"
claim = "0.3.1"
claim = { git = "https://github.com/No9/rust-claim" }
version-sync = "0.9.2"
serde_yaml = "0.8"
rmp-serde = "1"