Skip to content
This repository was archived by the owner on Feb 18, 2025. It is now read-only.

Commit 910b356

Browse files
tiziano88soc
authored andcommitted
Supports wasm32 arch
Currently the switch only selects `wasi`, which is a special case of `wasm32`. This change includes the `wasm` mod (renamed from `wasi`) for any `wasm32` arch.
1 parent 1c273d9 commit 910b356

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/lib.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ cfg_if! {
2525
} else if #[cfg(any(target_os = "macos", target_os = "ios"))] {
2626
mod mac;
2727
use mac as sys;
28-
} else if #[cfg(target_os = "wasi")] {
29-
mod wasi;
30-
use wasi as sys;
28+
} else if #[cfg(target_arch = "wasm32")] {
29+
mod wasm;
30+
use wasm as sys;
3131
} else {
3232
mod lin;
3333
use lin as sys;

src/wasi.rs renamed to src/wasm.rs

File renamed without changes.

0 commit comments

Comments
 (0)