We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0da08c4 commit 1231184Copy full SHA for 1231184
src/sys/mod.rs
@@ -1,10 +1,9 @@
1
cfg_if::cfg_if! {
2
- if #[cfg(any(feature = "wasip3", all(target_os = "wasi", target_env = "p3")))] {
3
- mod p3;
4
- use p3 as backend;
5
- } else {
+ if #[cfg(all(target_os = "wasi", target_env = "p2"))] {
6
mod p2;
7
use p2 as backend;
+ } else {
+ compile_error!("unsupported target: wstd only compiles on `wasm32-wasip2`");
8
}
9
10
0 commit comments