Skip to content
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

Compiling wasm-bindgen-futures v0.4.40 gives error[E0658]: use of unstable library feature 'stdarch_wasm_atomic_wait' #3830

Closed
fzyzcjy opened this issue Feb 6, 2024 · 2 comments
Labels

Comments

@fzyzcjy
Copy link

fzyzcjy commented Feb 6, 2024

Describe the Bug

Hi thanks for the toolkit! However, it seems that I cannot compile it (in https://github.com/fzyzcjy/flutter_rust_bridge) and it gives the error below.
Related PR: fzyzcjy/flutter_rust_bridge#1727

It seems that #3827 fixes this issue, but https://crates.io/crates/wasm-bindgen-futures/versions's last release is 25 days ago, so maybe it needs to release a new version.

Steps to Reproduce

Compile it:

   Compiling wasm-bindgen-futures v0.4.40
error[E0658]: use of unstable library feature 'stdarch_wasm_atomic_wait'
  --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasm-bindgen-futures-0.4.40/src/task/multithread.rs:38:13
   |
38 |             core::arch::wasm32::memory_atomic_notify(
   |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: see issue #77839 <https://github.com/rust-lang/rust/issues/77839> for more information
   = help: add `#![feature(stdarch_wasm_atomic_wait)]` to the crate attributes to enable
   = note: this compiler was built on 2024-02-05; consider upgrading it if it is out of date

error[E0635]: unknown feature `stdsimd`
  --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasm-bindgen-futures-0.4.40/src/lib.rs:33:49
   |
33 | #![cfg_attr(target_feature = "atomics", feature(stdsimd))]
   |                                                 ^^^^^^^

Some errors have detailed explanations: E0635, E0658.
For more information about an error, try `rustc --explain E0635`.
error: could not compile `wasm-bindgen-futures` (lib) due to 2 previous errors

Expected Behavior

A clear and concise description of what you expected to happen.

Actual Behavior

A clear and concise description of what actually happened.

If applicable, add screenshots to help explain your problem.

Additional Context

Add any other context about the problem here.

@daxpedda
Copy link
Collaborator

daxpedda commented Feb 6, 2024

Indeed #3827 fixes the issue and we have already released a new version in #3829 but having some Crates.io deployment issue.
So some patience will be required.

@daxpedda daxpedda closed this as completed Feb 6, 2024
@fzyzcjy
Copy link
Author

fzyzcjy commented Feb 6, 2024

I see, thank you! (I saw that "0.2.91" issue, but wrongly thought it was unrelated to futures, since it is 0.4.x)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants