@@ -21,9 +21,12 @@ core = { version = "1.0", optional = true, package = "rustc-std-workspace-core"
2121[target .'cfg(unix)' .dependencies ]
2222libc = { version = " 0.2.154" , default-features = false }
2323
24- [target .'cfg(target_os = "wasi")' .dependencies ]
24+ [target .'cfg(all(target_arch = "wasm32", target_os = "wasi", target_env = "p1") )' .dependencies ]
2525wasi = { version = " 0.11" , default-features = false }
2626
27+ [target .'cfg(all(target_arch = "wasm32", target_os = "wasi", target_env = "p2"))' .dependencies ]
28+ wasi = { version = " 0.13" , default-features = false }
29+
2730[target .'cfg(all(windows, not(target_vendor = "win7")))' .dependencies ]
2831windows-targets = " 0.52"
2932
@@ -46,10 +49,7 @@ js = ["wasm-bindgen", "js-sys"]
4649# Feature to enable custom RNG implementations
4750custom = []
4851# Unstable feature to support being a libstd dependency
49- rustc-dep-of-std = [
50- " compiler_builtins" ,
51- " core" ,
52- ]
52+ rustc-dep-of-std = [" compiler_builtins" , " core" ]
5353# Unstable/test-only feature to run wasm-bindgen tests in a browser
5454test-in-browser = []
5555
@@ -64,10 +64,10 @@ rustdoc-args = ["--cfg", "docsrs"]
6464# workaround for https://github.com/cross-rs/cross/issues/1345
6565[package .metadata .cross .target .x86_64-unknown-netbsd ]
6666pre-build = [
67- " mkdir -p /tmp/netbsd" ,
68- " curl https://cdn.netbsd.org/pub/NetBSD/NetBSD-9.2/amd64/binary/sets/base.tar.xz -O" ,
69- " tar -C /tmp/netbsd -xJf base.tar.xz" ,
70- " cp /tmp/netbsd/usr/lib/libexecinfo.so /usr/local/x86_64-unknown-netbsd/lib" ,
71- " rm base.tar.xz" ,
72- " rm -rf /tmp/netbsd" ,
67+ " mkdir -p /tmp/netbsd" ,
68+ " curl https://cdn.netbsd.org/pub/NetBSD/NetBSD-9.2/amd64/binary/sets/base.tar.xz -O" ,
69+ " tar -C /tmp/netbsd -xJf base.tar.xz" ,
70+ " cp /tmp/netbsd/usr/lib/libexecinfo.so /usr/local/x86_64-unknown-netbsd/lib" ,
71+ " rm base.tar.xz" ,
72+ " rm -rf /tmp/netbsd" ,
7373]
0 commit comments