# Formatting policy.
#
# `style_edition` is the 2024-edition formatting ruleset and is stable.
# The import options below are still nightly-gated: stable `cargo fmt` prints a
# warning and ignores them, it does not fail. Apply them with:
#
# cargo +nightly fmt
#
# CI runs the nightly form (see `cargo xtask ci`). This mirrors what
# rust-lang/rust itself does with its own rustfmt.toml.
style_edition = "2024"
max_width = 100
use_field_init_shorthand = true
use_try_shorthand = true
newline_style = "Unix"
# --- nightly-gated below this line ---
group_imports = "StdExternalCrate"
imports_granularity = "Module"
format_code_in_doc_comments = true
wrap_comments = true
comment_width = 90
normalize_comments = true