project-toolchain-and-rustfmt-config
Closed
OW
1mo ago+94+94+01234567890123456789-67-67-01234567890123456789
Summary by Sourcery
Standardize the Rust toolchain and formatting policy across development and CI.
New Features:
- Add project-wide stable Rust toolchain and rustfmt configurations to align local development with CI.
Enhancements:
- Document formatting commands and clarify toolchain management and reproducibility expectations.
- Apply the configured formatting consistently across the Rust workspace.
Build:
- Pin the stable Rust channel with the rustfmt and clippy components via rust-toolchain.toml.
Documentation:
- Update contributor guidance with the project formatting policy and toolchain setup.
Summary by cubic
Adds project-wide rustfmt configuration and toolchain pinning so cargo fmt --check passes identically on every toolchain and local builds match CI.
- Adds
rust-toolchain.tomlpinningstablewithrustfmtandclippycomponents, matching what CI installs. - Adds
rustfmt.tomlwithedition = "2021"andmax_width = 100, restricted to options that behave the same across stable rustfmt releases. - Reapplies formatting across 10 crates (whitespace only) per the new config, replacing reliance on a global
~/.rustfmt.tomlthat could fail on newer rustfmt. - Updates
AGENTS.mdandrust.instructions.mdto document the new formatting and toolchain setup.
Refs #77