Skip to content

Commit 0662fcf

Browse files
authored
make wasi a target-specific dependency
1 parent 9fd203a commit 0662fcf

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/libstd/Cargo.toml

+3-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ compiler_builtins = { version = "0.1.16" }
2424
profiler_builtins = { path = "../libprofiler_builtins", optional = true }
2525
unwind = { path = "../libunwind" }
2626
hashbrown = { version = "0.5.0", features = ['rustc-dep-of-std'] }
27-
wasi = { version = "0.7.0", features = ['rustc-dep-of-std', 'alloc'] }
2827

2928
[dependencies.backtrace]
3029
version = "0.3.35"
@@ -57,6 +56,9 @@ dlmalloc = { version = "0.1", features = ['rustc-dep-of-std'] }
5756
[target.x86_64-fortanix-unknown-sgx.dependencies]
5857
fortanix-sgx-abi = { version = "0.3.2", features = ['rustc-dep-of-std'] }
5958

59+
[target.wasm32-wasi.dependencies]
60+
wasi = { version = "0.7.0", features = ['rustc-dep-of-std', 'alloc'] }
61+
6062
[build-dependencies]
6163
cc = "1.0"
6264

0 commit comments

Comments
 (0)