Skip to content

Commit 920b0a5

Browse files
committed
Support compiling to wasm32-wasip2
- 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
1 parent 93cbd73 commit 920b0a5

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

sdk/Cargo.toml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ serde_with = "3.11.0"
118118
serde-transcode = "1.1.1"
119119
sha1 = "0.10.6"
120120
sha2 = "0.10.6"
121-
tempfile = { version = "3.14", features = ["nightly"] }
121+
tempfile = "3.14"
122122
thiserror = "1.0.61"
123123
treeline = "0.1.0"
124124
url = "2.5.3"
@@ -135,6 +135,9 @@ p384 = "0.13.0"
135135
rsa = { version = "0.9.6", features = ["sha2"] }
136136
spki = "0.7.3"
137137

138+
[target.'cfg(target_env = "p2")'.dependencies]
139+
tempfile = { version = "3.14", features = ["nightly"] }
140+
138141
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
139142
ureq = "2.4.0"
140143
instant = "0.1.12"
@@ -150,6 +153,7 @@ image = { version = "0.24.7", default-features = false, features = [
150153
getrandom = "0.2.7"
151154
instant = { version = "0.1.12", features = ["inaccurate"] }
152155

156+
153157
[target.'cfg(all(target_arch = "wasm32",not(target_os = "wasi")))'.dependencies]
154158
chrono = { version = "0.4.38", default-features = false, features = [
155159
"serde",

0 commit comments

Comments
 (0)