# ---------------------------------------------------------------------------
# rustfmt.toml — nightly channel
# Requires: rustup component add rustfmt --toolchain nightly
# cargo +nightly fmt
# Pin this in CI and document it in CONTRIBUTING.md — every contributor and
# every CI job must use the same nightly rustfmt, or formatting will drift
# and `cargo fmt --check` will disagree between machines.
# ---------------------------------------------------------------------------
= "2024"
= "Default"
# --- import handling ---------------------------------------------------
# Merge multiple `use` items from the same crate into one nested statement
= "Crate"
# Separate imports into std / external crate / local crate blocks
= "StdExternalCrate"
# --- comments & docs -----------------------------------------------------
# Wrap long comments/doc comments to max_width
= true
# Width budget for fenced code blocks inside doc comments
= 100
# Format macro bodies that look like ordinary Rust code
= true