Skip to content

Commit f4a0890

Browse files
authored
Auto merge of #270 - tomaka:wasi, r=emilio
Make it compile for wasm32-unknown-unknown and wasm32-wasi This uses the "inprocess" implementation for the WebAssembly targets, like Windows, Android and iOS already do. Note that this only compile with the master branch of the `uuid` crate, as uuid-rs/uuid#477 hasn't been published yet.
2 parents 00c5b5c + 0c929bf commit f4a0890

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

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)