You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have searched extensively, so please excuse me if this has been addressed.
I'm using stdweb api and compiling with cargo web.
My wasm module panics with a "not implemented".
I have tried all feature options including default-features = false, js-sys and wasm-bindgen.
(Obviously, with wasm-bindgen I get Error loading Rust wasm module 'calendar': TypeError: "import object field '__wbindgen_placeholder__' is not an Object")
It's unclear what exact line of of my code produces the panic, but it appears to be the time crate causing the panic.
// time 0.1.42, line 102pubfnget_time() -> (i64,i32){unimplemented!()}
The only types I'm using are use chrono::{Duration, NaiveDate, NaiveDateTime, NaiveTime};.
What am I missing? Does chrono work with stdweb or only wasm-bindgen?
The text was updated successfully, but these errors were encountered:
I had the same issue until I realized that the feature is called wasmbind, which imports both wasm-bindgen and js-sys. That plus default-features = false made it work for me with stdweb and wasm-bindgen.
I got a bit tricked by issue #382, which is apparently a bit out of date.
I have searched extensively, so please excuse me if this has been addressed.
I'm using
stdweb
api and compiling withcargo web
.My
wasm
module panics with a"not implemented"
.I have tried all feature options including
default-features = false
,js-sys
andwasm-bindgen
.(Obviously, with
wasm-bindgen
I getError loading Rust wasm module 'calendar': TypeError: "import object field '__wbindgen_placeholder__' is not an Object"
)It's unclear what exact line of of my code produces the panic, but it appears to be the
time
crate causing the panic.The only types I'm using are
use chrono::{Duration, NaiveDate, NaiveDateTime, NaiveTime};
.What am I missing? Does
chrono
work withstdweb
or onlywasm-bindgen
?The text was updated successfully, but these errors were encountered: