Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 13db34f

Browse files
committed
Document the global rustfmt.toml feature.
1 parent 24daa17 commit 13db34f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Configurations.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Configuring Rustfmt
22

3-
Rustfmt is designed to be very configurable. You can create a TOML file called `rustfmt.toml` or `.rustfmt.toml`, place it in the project or any other parent directory and it will apply the options in that file.
3+
Rustfmt is designed to be very configurable. You can create a TOML file called `rustfmt.toml` or `.rustfmt.toml`, place it in the project or any other parent directory and it will apply the options in that file. If none of these directories contain such a file, your [global config directory](https://docs.rs/dirs/1.0.4/dirs/fn.config_dir.html) is checked for a folder called `rustfmt`, which may contain a `rustfmt.toml` (e.g. `~/.config/rustfmt/rustfmt.toml`).
44

55
A possible content of `rustfmt.toml` or `.rustfmt.toml` might look like this:
66

0 commit comments

Comments
 (0)