@@ -52,7 +52,6 @@ async-trait = { version = "^0.1.33", optional = true }
5252bytes = { version = " ^1.0" , optional = true }
5353futures = { version = " ^0.3" , optional = true }
5454http = { version = " 0.2" , optional = true }
55- hyper = { version = " ^0.14" , optional = true }
5655axum-lib = { version = " ^0.6" , optional = true , package =" axum" }
5756http-body = { version = " ^0.4" , optional = true }
5857poem-lib = { version = " =1.2.34" , optional = true , package = " poem" }
@@ -64,6 +63,12 @@ hostname = "^0.3"
6463[target .'cfg(all(target_arch = "wasm32", target_os = "unknown"))' .dependencies ]
6564web-sys = { version = " ^0.3" , features = [" Window" , " Location" ] }
6665
66+ [target .'cfg(not(target_os = "wasi"))' .dependencies ]
67+ hyper = { version = " ^0.14" , optional = true }
68+
69+ [target .'cfg(all(target_arch = "wasm32", target_os = "wasi"))' .dependencies ]
70+ hyper_wasi = { version = " 0.15" , features = [" full" ], optional = true }
71+
6772[dev-dependencies ]
6873rstest = " 0.6"
6974claims = " 0.7.1"
@@ -72,11 +77,25 @@ serde_yaml = "0.8"
7277rmp-serde = " 1"
7378
7479# runtime dev-deps
75- actix-rt = { version = " ^2 " }
80+
7681url = { version = " ^2.1" , features = [" serde" ] }
7782serde_json = { version = " ^1.0" }
7883chrono = { version = " ^0.4" , features = [" serde" ] }
7984mockito = " 0.25.1"
80- tokio = { version = " ^1.0" , features = [" full" ] }
8185mime = " 0.3"
86+
87+
88+ [target .'cfg(not(target_os = "wasi"))' .dev-dependencies ]
89+ actix-rt = { version = " ^2" }
90+ tokio = { version = " ^1.0" , features = [" full" ] }
8291tower = { version = " 0.4" , features = [" util" ] }
92+
93+ [target .'cfg(all(target_arch = "wasm32", target_os = "wasi"))' .dev-dependencies ]
94+ tokio_wasi = { version = " 1" , features = [
95+ " io-util" ,
96+ " fs" ,
97+ " net" ,
98+ " time" ,
99+ " rt" ,
100+ " macros" ,
101+ ] }
0 commit comments