-
-
Notifications
You must be signed in to change notification settings - Fork 774
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
wasm-pack + serde + AtomicUsize #1778
Comments
This looks like a consequence of #1581. Determining exactly which targets can handle which atomic operations is complicated so we've only started with a conservative set and would need to expand as use cases come up. |
@dtolnay thank you for the quick response, your approach makes sense. It seems like |
Sounds good; someone should send a PR to enable the atomic impls on wasm32-unknown-unknown on the correct range of compiler versions. |
Fixed in serde 1.0.150 by #2337. |
Serialize
is not implemented forAtomicUsize
in wasm when usingwasm-pack
.Example:
Install
wasm-pack
:curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
Add to your Cargo.toml:
wasm-pack build
(wasm-pack
builds intowasm32-unknown-unknown
)It errors with:
Could anybody explain to me why/if it is not fundamentally impossible to implement this?
The text was updated successfully, but these errors were encountered: