Skip to content

Commit 0c929bf

Browse files
committed
Make it compile for wasm32-unknown-unknown and wasm32-wasi
1 parent 00c5b5c commit 0c929bf

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

src/platform/mod.rs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,15 @@ mod os {
2525
pub use super::macos::*;
2626
}
2727

28-
#[cfg(any(feature = "force-inprocess", target_os = "windows", target_os = "android", target_os = "ios"))]
28+
#[cfg(any(
29+
feature = "force-inprocess",
30+
target_os = "windows", target_os = "android", target_os = "ios", target_os = "wasi", target_os = "unknown"
31+
))]
2932
mod inprocess;
30-
#[cfg(any(feature = "force-inprocess", target_os = "windows", target_os = "android", target_os = "ios"))]
33+
#[cfg(any(
34+
feature = "force-inprocess",
35+
target_os = "windows", target_os = "android", target_os = "ios", target_os = "wasi", target_os = "unknown"
36+
))]
3137
mod os {
3238
pub use super::inprocess::*;
3339
}

0 commit comments

Comments
 (0)