Using a Rust overlay
It’s possible to use a Rust overlay such as rust-overlay
with crate2nix
.
This can be used for pinning the Rust toolchain version, or to use a newer toolchain version than is available in Nixpkgs.
In a flake with flake-parts: