Skip to content

Commit

Permalink
Support compiling to wasm32-wasip2
Browse files Browse the repository at this point in the history
- wasip2 will require +nightly until rust-lang/rust#130323 is resolved and/or std::os::wasip2 is available in stable.
- Support was added to rustix for version 0.38.39 bytecodealliance/rustix#1205
- Support was added to tempfile for version 3.14 Stebalien/tempfile#305
  • Loading branch information
cdmurph32 committed Nov 12, 2024
1 parent 93cbd73 commit 920b0a5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion sdk/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ serde_with = "3.11.0"
serde-transcode = "1.1.1"
sha1 = "0.10.6"
sha2 = "0.10.6"
tempfile = { version = "3.14", features = ["nightly"] }
tempfile = "3.14"
thiserror = "1.0.61"
treeline = "0.1.0"
url = "2.5.3"
Expand All @@ -135,6 +135,9 @@ p384 = "0.13.0"
rsa = { version = "0.9.6", features = ["sha2"] }
spki = "0.7.3"

[target.'cfg(target_env = "p2")'.dependencies]
tempfile = { version = "3.14", features = ["nightly"] }

[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
ureq = "2.4.0"
instant = "0.1.12"
Expand All @@ -150,6 +153,7 @@ image = { version = "0.24.7", default-features = false, features = [
getrandom = "0.2.7"
instant = { version = "0.1.12", features = ["inaccurate"] }


[target.'cfg(all(target_arch = "wasm32",not(target_os = "wasi")))'.dependencies]
chrono = { version = "0.4.38", default-features = false, features = [
"serde",
Expand Down

0 comments on commit 920b0a5

Please sign in to comment.