From 13db34fb95339c4ec3bf6f9ebd37ce22a01bcd84 Mon Sep 17 00:00:00 2001 From: Mara Bos Date: Mon, 7 Jan 2019 20:57:02 +0100 Subject: [PATCH] Document the global rustfmt.toml feature. --- Configurations.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Configurations.md b/Configurations.md index abe40f2ea6f..4f0be788948 100644 --- a/Configurations.md +++ b/Configurations.md @@ -1,6 +1,6 @@ # Configuring Rustfmt -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. +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`). A possible content of `rustfmt.toml` or `.rustfmt.toml` might look like this: