git-hooks.nix icon indicating copy to clipboard operation
git-hooks.nix copied to clipboard

incompatible with rust 2024

Open LeonWilzer opened this issue 5 months ago • 1 comments

The rust hooks break, when used in a project, which uses Rust 2024.

cargo-check..............................................................Failed
- hook id: cargo-check
- exit code: 101

error: failed to parse manifest at `/home/leon/Projects/manuela/Cargo.toml`

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.82.0 (8f40fc59f 2024-08-21)).
  Consider adding `cargo-features = ["edition2024"]` to the top of Cargo.toml (above the [package] table) to tell Cargo you are opting in to use this unstable feature.
  See https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#edition-2024 for more information about the status of this feature.

The issue is that an outdated version of Cargo and updating the flake.lock resolves it.

LeonWilzer avatar May 07 '25 21:05 LeonWilzer