Skip to content

Commit 5e23e13

Browse files
committed
fix stdweb
1 parent 9e844d5 commit 5e23e13

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/lib.rs

+4
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,10 @@ extern crate log;
122122
#[allow(unused)]
123123
macro_rules! error { ($($x:tt)*) => () }
124124

125+
// temp fix for stdweb
126+
#[cfg(target_arch = "wasm32")]
127+
extern crate std;
128+
125129
#[cfg(any(
126130
target_os = "android",
127131
target_os = "netbsd",

src/wasm32_stdweb.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,12 @@
77
// except according to those terms.
88

99
//! Implementation for WASM via stdweb
10-
extern crate std;
11-
1210
use core::cell::RefCell;
1311
use core::mem;
1412
use core::num::NonZeroU32;
1513
use std::thread_local;
1614

17-
use stdweb::js;
15+
use stdweb::{js, _js_impl};
1816
use stdweb::unstable::TryInto;
1917
use stdweb::web::error::Error as WebError;
2018

0 commit comments

Comments
 (0)