Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WASI support #202

Merged
merged 11 commits into from
Apr 30, 2024
17 changes: 15 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,12 @@ 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]
No9 marked this conversation as resolved.
Show resolved Hide resolved
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"
claims = "0.7.1"
Expand All @@ -72,11 +78,18 @@ serde_yaml = "0.8"
rmp-serde = "1"

# runtime dev-deps
actix-rt = { version = "^2" }

url = { version = "^2.1", features = ["serde"] }
serde_json = { version = "^1.0" }
chrono = { version = "^0.4", features = ["serde"] }
mockito = "0.25.1"
tokio = { version = "^1.0", features = ["full"] }
mime = "0.3"


[target."cfg(not(target_os = \"wasi\"))".dev-dependencies]
Lazzaretti marked this conversation as resolved.
Show resolved Hide resolved
actix-rt = { version = "^2" }
tokio = { version = "^1.0", features = ["full"] }
tower = { version = "0.4", features = ["util"] }

[target.'cfg(all(target_arch = "wasm32", target_os = "wasi"))'.dev-dependencies]
tokio_wasi = { version = "1", features = ["io-util", "fs", "net", "time", "rt", "macros"] }
2 changes: 2 additions & 0 deletions tests/version_number.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
#[test]
#[cfg_attr(target_os = "wasi", ignore)]
fn test_readme_deps() {
version_sync::assert_markdown_deps_updated!("README.md");
}

#[test]
#[cfg_attr(target_os = "wasi", ignore)]
fn test_html_root_url() {
version_sync::assert_html_root_url_updated!("src/lib.rs");
}
Loading