Rust errors / Build and Cargo
Rust build error · checked with Rust 1.99.0
feature `edition2024` is required
feature `edition2024` is required
What it meansA crate in your tree uses the 2024 edition, which needs Cargo and Rust 1.85 or newer.
Why it happens
- An old toolchain building a crate (or a dependency) published with edition = "2024".
How to fix it
1. Update Rust
rustup update stable2. Or pin an older dependency
Pick the last version that used edition 2021.
cargo update -p <crate> --precise <version>Other wordings of this error
feature edition2024 is required, this version of Cargo is older than the 2024 edition, edition2021 is required
Other build errors
- error: linker `link.exe` not found
- error: linker `cc` not found
- error: failed to run custom build command for `openssl-sys`
- error: failed to select a version for the requirement
- error: failed to select a version for `libsqlite3-sys`... the package `libsqlite3-sys` lin
- error: could not compile `my-crate` (bin "my-crate") due to 1 previous error
- error: package `foo v1.2.3` cannot be built because it requires rustc 1.80 or newer, while
- Blocking waiting for file lock on package cache
Up next
Find the right pagePaste any Rust errorCompiler codes and build errors in one finder.Read it next →Also worth your time
Did this answer your question?