Skip to content

Commit cb493bb

Browse files
committed
Support wasm32-unknown-emscripten
1 parent 98b940f commit cb493bb

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ cloudabi = { version = "0.0.3", optional = true }
4646
[target.'cfg(target_os = "fuchsia")'.dependencies]
4747
fuchsia-zircon = { version = "0.3.2", optional = true }
4848

49-
[target.wasm32-unknown-unknown.dependencies]
49+
[target.'cfg(target_arch = "wasm32")'.dependencies]
5050
# use with `--target wasm32-unknown-unknown --features=stdweb`
5151
stdweb = { version = "0.4", optional = true }
5252

src/rngs/os.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -659,9 +659,7 @@ mod imp {
659659
}
660660
}
661661

662-
#[cfg(all(target_arch = "wasm32",
663-
not(target_os = "emscripten"),
664-
not(feature = "stdweb")))]
662+
#[cfg(all(target_arch = "wasm32", not(feature = "stdweb")))]
665663
mod imp {
666664
use {Error, ErrorKind};
667665

@@ -681,9 +679,7 @@ mod imp {
681679
}
682680
}
683681

684-
#[cfg(all(target_arch = "wasm32",
685-
not(target_os = "emscripten"),
686-
feature = "stdweb"))]
682+
#[cfg(all(target_arch = "wasm32", feature = "stdweb"))]
687683
mod imp {
688684
use std::mem;
689685
use stdweb::unstable::TryInto;

0 commit comments

Comments
 (0)