File tree 2 files changed +5
-2
lines changed 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,6 @@ rand_core = { version = '0.1.0-pre.0', default-features = false }
33
33
log = { version = " 0.4" , optional = true }
34
34
serde = { version = " 1" , optional = true }
35
35
serde_derive = { version = " 1" , optional = true }
36
- stdweb = { version = " 0.4" , optional = true }
37
36
38
37
[target .'cfg(unix)' .dependencies ]
39
38
libc = { version = " 0.2" , optional = true }
@@ -47,6 +46,10 @@ cloudabi = { version = "0.0.3", optional = true }
47
46
[target .'cfg(target_os = "fuchsia")' .dependencies ]
48
47
fuchsia-zircon = { version = " 0.3.2" , optional = true }
49
48
49
+ [target .wasm32-unknown-unknown .dependencies ]
50
+ # use with `--target wasm32-unknown-unknown --features=stdweb`
51
+ stdweb = { version = " 0.4" , optional = true }
52
+
50
53
[dev-dependencies ]
51
54
# This is for testing serde, unfortunately we can't specify feature-gated dev
52
55
# deps yet, see: https://github.com/rust-lang/cargo/issues/1596
Original file line number Diff line number Diff line change 188
188
#[ cfg( feature="serde-1" ) ] extern crate serde;
189
189
#[ cfg( feature="serde-1" ) ] #[ macro_use] extern crate serde_derive;
190
190
191
- #[ cfg( feature = "stdweb" ) ]
191
+ #[ cfg( all ( target_arch = "wasm32" , feature = "stdweb" ) ) ]
192
192
#[ macro_use]
193
193
extern crate stdweb;
194
194
You can’t perform that action at this time.
0 commit comments