Fix stdweb extern issue (#66)

This commit is contained in:
Joseph Richey 2019-07-28 01:07:07 -07:00 committed by Artyom Pavlov
parent 00c3cff101
commit dadef458ba
3 changed files with 3 additions and 3 deletions

View File

@ -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 = []

View File

@ -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;

View File

@ -7,6 +7,8 @@
// except according to those terms.
//! Implementation for WASM via stdweb
extern crate std;
use core::mem;
use stdweb::unstable::TryInto;