Skip to content

Commit 79d6e35

Browse files
committed
no need to do a no_std build for wasi
1 parent 69d75e2 commit 79d6e35

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

ci.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ case $HOST_TARGET in
108108
MIRI_TEST_TARGET=i686-pc-windows-msvc run_tests
109109
MIRI_TEST_TARGET=x86_64-unknown-freebsd run_tests_minimal hello integer vec panic/panic concurrency/simple atomic data_race env/var
110110
MIRI_TEST_TARGET=aarch64-linux-android run_tests_minimal hello integer vec panic/panic
111-
MIRI_TEST_TARGET=wasm32-wasi MIRI_NO_STD=1 run_tests_minimal no_std # supports std but miri doesn't support it
111+
MIRI_TEST_TARGET=wasm32-wasi run_tests_minimal no_std integer
112112
MIRI_TEST_TARGET=thumbv7em-none-eabihf MIRI_NO_STD=1 run_tests_minimal no_std # no_std embedded architecture
113113
MIRI_TEST_TARGET=tests/avr.json MIRI_NO_STD=1 run_tests_minimal no_std # JSON target file
114114
;;

test_dependencies/Cargo.toml

+4-2
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,15 @@ edition = "2021"
99

1010
[dependencies]
1111
# all dependencies (and their transitive ones) listed here can be used in `tests/`.
12-
tokio = { version = "1.0", features = ["full"] }
1312
libc = "0.2"
14-
page_size = "0.5"
1513
num_cpus = "1.10.1"
1614

1715
getrandom_1 = { package = "getrandom", version = "0.1" }
1816
getrandom = { version = "0.2" }
1917
rand = { version = "0.8", features = ["small_rng"] }
2018

19+
[target.'cfg(not(any(target_arch = "wasm32", target_arch = "wasm64")))'.dependencies]
20+
page_size = "0.5"
21+
tokio = { version = "1.0", features = ["full"] }
22+
2123
[workspace]

0 commit comments

Comments
 (0)