Fix stdweb extern issue (#66)
This commit is contained in:
parent
00c3cff101
commit
dadef458ba
@ -26,7 +26,7 @@ libc = "0.2.60"
|
||||
|
||||
[target.wasm32-unknown-unknown.dependencies]
|
||||
wasm-bindgen = { version = "0.2.29", optional = true }
|
||||
stdweb = { version = "0.4.9", optional = true }
|
||||
stdweb = { version = "0.4.18", optional = true }
|
||||
|
||||
[features]
|
||||
std = []
|
||||
|
@ -230,8 +230,6 @@ cfg_if! {
|
||||
if #[cfg(feature = "wasm-bindgen")] {
|
||||
#[path = "wasm32_bindgen.rs"] mod imp;
|
||||
} else if #[cfg(feature = "stdweb")] {
|
||||
// temp fix for stdweb
|
||||
extern crate std;
|
||||
#[path = "wasm32_stdweb.rs"] mod imp;
|
||||
} else {
|
||||
#[path = "dummy.rs"] mod imp;
|
||||
|
@ -7,6 +7,8 @@
|
||||
// except according to those terms.
|
||||
|
||||
//! Implementation for WASM via stdweb
|
||||
extern crate std;
|
||||
|
||||
use core::mem;
|
||||
|
||||
use stdweb::unstable::TryInto;
|
||||
|
Loading…
x
Reference in New Issue
Block a user