Files
oxc-project__oxc/.rustfmt.toml
Boshen 1db440d67a chore(rustfmt): standardize rustfmt config (#24135)
Standardizes the Rustfmt config filename and options, then applies cargo
fmt.
2026-07-04 12:17:36 +08:00

21 lines
647 B
TOML

style_edition = "2024"
# Make Rust more readable given most people have wide screens nowadays.
# This is also the setting used by [rustc](https://github.com/rust-lang/rust/blob/master/rustfmt.toml)
use_small_heuristics = "Max"
# Use field initialize shorthand if possible
use_field_init_shorthand = true
reorder_modules = true
merge_derives = true
remove_nested_parens = true
# All unstable features that we wish for
# unstable_features = true
# Provide a cleaner impl order
# reorder_impl_items = true
# Provide a cleaner import sort order
# group_imports = "StdExternalCrate"
# Group "use" statements by crate
# imports_granularity = "Crate"