Skip to content

cargo metadata exited with an error: error: failed to parse manifest at /path/to/Cargo.toml: feature edition2024 is required #1484

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

Open
CBenoit opened this issue Mar 28, 2025 · 4 comments

Comments

@CBenoit
Copy link

CBenoit commented Mar 28, 2025

Some of our dependencies are now using Rust edition 2024, and thus we had to bump the Rust toolchain in our workspace too.

However, it’s now impossible to use wasm-pack to target WASM, as it exits with this error:

Error: `cargo metadata` exited with an error: error: failed to parse manifest at `REDACTED`

Caused by:
  feature `edition2024` is required

  The package requires the Cargo feature called `edition2024`, but that feature is not stabilized in this version of Cargo (1.84.1 (66221abde 2024-11-19)).
  Consider trying a newer version of Cargo (this may require the nightly release).
  See https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#edition-2024 for more information about the status of this feature.

I assume something must be updated in wasm-pack?

@CBenoit CBenoit changed the title cargo metadata exited with an error: error: failed to parse manifest at /home/auroden/git/IronVNC/crates/ironvnc-web/Cargo.toml: feature edition2024 is required cargo metadata exited with an error: error: failed to parse manifest at /path/to/Cargo.toml: feature edition2024 is required Mar 28, 2025
@ptcbink
Copy link

ptcbink commented Apr 3, 2025

I've also met this issue. The best way to fix thi issue is that verion down of rustc

@ptcbink
Copy link

ptcbink commented Apr 3, 2025

Image

@PritamP20
Copy link

where able to solve this issue?

@ptcbink
Copy link

ptcbink commented Apr 6, 2025

First, install dependencies with the command of cargo add then drop here screenshot of issues

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

No branches or pull requests

3 participants