New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Instructions for using with wasm #382
Comments
Ah, yeah I actually have almost no experience with wasm other than getting the tests running. A PR adding wasm instructions (or pointing to them) would be most welcome! |
If I do manage to get going, I will send in a PR documenting the same. |
You do need to build chrono with the |
This is the declaration I am using in the Cargo.toml file.
On the other hand, the error message seems to be correct as an |
A way to get system time in wasm until both std::time::Duration::from_millis(stdweb::web::Date::now() as u64) |
@da-x That is one good way. My idea though was to leverage chrono's convenient date manipulation APIs. |
In case it helps anyone else who stumbles here from the web like I did, I changed my wasm-pack built app's dependencies from:
to
and I'm able to serialize / deserialize
Prior to adding the |
The So since then it should 'just work'? |
While there are some issues/PRs (#243, #284, etc.) relating to wasm, there is no specific section in documentation properly detailing steps to use it with something like
wasm-pack
.For now (v0.4.10), the following code fails to compile:
The error message is:
The text was updated successfully, but these errors were encountered: