File tree 2 files changed +7
-5
lines changed
2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -50,6 +50,10 @@ fuchsia-zircon = { version = "0.3.2", optional = true }
50
50
# use with `--target wasm32-unknown-unknown --features=stdweb`
51
51
stdweb = { version = " 0.4" , optional = true }
52
52
53
+ [target .wasm32-unknown-emscripten .dependencies ]
54
+ # use with `--target wasm32-unknown-unknown --features=stdweb`
55
+ stdweb = { version = " 0.4" , optional = true }
56
+
53
57
[dev-dependencies ]
54
58
# This is for testing serde, unfortunately we can't specify feature-gated dev
55
59
# deps yet, see: https://github.com/rust-lang/cargo/issues/1596
Original file line number Diff line number Diff line change @@ -147,6 +147,7 @@ impl RngCore for OsRng {
147
147
148
148
#[ cfg( all( unix,
149
149
not( target_os = "cloudabi" ) ,
150
+ not( all( target_os = "emscripten" , feature = "stdweb" ) ) ,
150
151
not( target_os = "freebsd" ) ,
151
152
not( target_os = "fuchsia" ) ,
152
153
not( target_os = "ios" ) ,
@@ -660,8 +661,7 @@ mod imp {
660
661
}
661
662
662
663
#[ cfg( all( target_arch = "wasm32" ,
663
- not( target_os = "emscripten" ) ,
664
- not( feature = "stdweb" ) ) ) ]
664
+ not( any( target_os = "emscripten" , feature = "stdweb" ) ) ) ) ]
665
665
mod imp {
666
666
use { Error , ErrorKind } ;
667
667
@@ -681,9 +681,7 @@ mod imp {
681
681
}
682
682
}
683
683
684
- #[ cfg( all( target_arch = "wasm32" ,
685
- not( target_os = "emscripten" ) ,
686
- feature = "stdweb" ) ) ]
684
+ #[ cfg( all( target_arch = "wasm32" , feature = "stdweb" ) ) ]
687
685
mod imp {
688
686
use std:: mem;
689
687
use stdweb:: unstable:: TryInto ;
You can’t perform that action at this time.
0 commit comments