Skip to content
Snippets Groups Projects
Commit dadef458 authored by Joseph Richey's avatar Joseph Richey Committed by Artyom Pavlov
Browse files

Fix stdweb extern issue (#66)

parent 00c3cff1
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment