diff --git a/src/lib.rs b/src/lib.rs index 4625dce..e55b9a5 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -122,6 +122,10 @@ extern crate log; #[allow(unused)] macro_rules! error { ($($x:tt)*) => () } +// temp fix for stdweb +#[cfg(target_arch = "wasm32")] +extern crate std; + #[cfg(any( target_os = "android", target_os = "netbsd", diff --git a/src/wasm32_stdweb.rs b/src/wasm32_stdweb.rs index 4009f19..02f89aa 100644 --- a/src/wasm32_stdweb.rs +++ b/src/wasm32_stdweb.rs @@ -7,14 +7,12 @@ // except according to those terms. //! Implementation for WASM via stdweb -extern crate std; - use core::cell::RefCell; use core::mem; use core::num::NonZeroU32; use std::thread_local; -use stdweb::js; +use stdweb::{js, _js_impl}; use stdweb::unstable::TryInto; use stdweb::web::error::Error as WebError;