From 5bc9dc01618421596d65a7046e46559a872c6693 Mon Sep 17 00:00:00 2001 From: Owen Jacobson Date: Mon, 25 Aug 2025 22:38:19 -0400 Subject: Group Rust imports by crate. I've been doing this by hand anyways, and this makes it a _ton_ less tedious to maintain. I think it looks nice. This does, however, require nightly - for formatting only. --- rustfmt.toml | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 rustfmt.toml (limited to 'rustfmt.toml') diff --git a/rustfmt.toml b/rustfmt.toml new file mode 100644 index 0000000..26527d9 --- /dev/null +++ b/rustfmt.toml @@ -0,0 +1,5 @@ +# UNSTABLE - this setting can eat comments in `use` blocks. See +# for details. +# +# Yes, this is why the `check-format` and `reformat` tools use `+nightly`. +imports_granularity = "crate" -- cgit v1.2.3