-
Notifications
You must be signed in to change notification settings - Fork 141
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Is your feature request related to a problem? Please describe.
Rust edition may introduce style change (e.g. Edition 2024 introduces). cargo fmt will use edition from Cargo.toml, but currently treefmt invokes rustfmt directly using a global option. There are changes for edition mismatch. nix fmt and cargo fmt giving different results is highly undesirable.
If the project mix up edition 2024/2021 code (allowed by Rust, appears in gradually updating edition), the situation is even worse, nix fmt can not work perfectly since there is no correct edition to specify.
Describe the solution you'd like
Switch to cargo fmt. cargo fmt will automatically detect the edition from Cargo.toml.
cafkafk, 0xda157 and declension
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request