From 8ece89f26edc973a547fea4295ac5131a7475c01 Mon Sep 17 00:00:00 2001 From: Colin Murphy Date: Tue, 12 Nov 2024 09:37:12 -0700 Subject: [PATCH] Support compiling to wasm32-wasip2 - wasip2 will require +nightly until https://github.com/rust-lang/rust/issues/130323 is resolved and/or std::os::wasip2 is available in stable. - Support was added to rustix for version 0.38.39 https://github.com/bytecodealliance/rustix/pull/1205 - Support was added to tempfile for version 3.14 https://github.com/Stebalien/tempfile/pull/305 --- sdk/Cargo.toml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sdk/Cargo.toml b/sdk/Cargo.toml index d19eecc20..241903735 100644 --- a/sdk/Cargo.toml +++ b/sdk/Cargo.toml @@ -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 = { version = "3.14"} thiserror = "1.0.61" treeline = "0.1.0" url = "2.5.3" @@ -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" @@ -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",