From 5e23e13a677c284955df1e82f00d7f7ea81afb4c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D1=80=D1=82=D1=91=D0=BC=20=D0=9F=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=BE=D0=B2=20=5BArtyom=20Pavlov=5D?= Date: Fri, 22 Mar 2019 22:27:50 +0300 Subject: [PATCH] fix stdweb --- src/lib.rs | 4 ++++ src/wasm32_stdweb.rs | 4 +--- 2 files changed, 5 insertions(+), 3 deletions(-) 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;