Skip to content

Commit c0173be

Browse files
committed
Auto merge of #4618 - integer32llc:config-in-home, r=alexcrichton
Clarify that $HOME/.cargo is always checked
2 parents 3f644f9 + 271860a commit c0173be

File tree

2 files changed

+21
-18
lines changed

2 files changed

+21
-18
lines changed

src/doc/book/src/reference/config.md

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,21 @@ manifest, see the [manifest format](reference/manifest.html).
66

77
### Hierarchical structure
88

9-
Cargo allows to have local configuration for a particular project or global
10-
configuration (like git). Cargo also extends this ability to a hierarchical
11-
strategy. If, for example, Cargo were invoked in `/home/foo/bar/baz`, then the
9+
10+
Cargo allows local configuration for a particular project as well as global
11+
configuration, like git. Cargo extends this to a hierarchical strategy.
12+
If, for example, Cargo were invoked in `/projects/foo/bar/baz`, then the
1213
following configuration files would be probed for and unified in this order:
1314

14-
* `/home/foo/bar/baz/.cargo/config`
15-
* `/home/foo/bar/.cargo/config`
16-
* `/home/foo/.cargo/config`
17-
* `/home/.cargo/config`
15+
* `/projects/foo/bar/baz/.cargo/config`
16+
* `/projects/foo/bar/.cargo/config`
17+
* `/projects/foo/.cargo/config`
18+
* `/projects/.cargo/config`
1819
* `/.cargo/config`
20+
* `$HOME/.cargo/config`
1921

20-
With this structure you can specify local configuration per-project, and even
21-
possibly check it into version control. You can also specify personal default
22+
With this structure, you can specify configuration per-project, and even
23+
possibly check it into version control. You can also specify personal defaults
2224
with a configuration file in your home directory.
2325

2426
### Configuration format

src/doc/config.md

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,20 @@ manifest, see the [manifest format](manifest.html).
66

77
# Hierarchical structure
88

9-
Cargo allows to have local configuration for a particular project or global
10-
configuration (like git). Cargo also extends this ability to a hierarchical
11-
strategy. If, for example, Cargo were invoked in `/home/foo/bar/baz`, then the
9+
Cargo allows local configuration for a particular project as well as global
10+
configuration, like git. Cargo extends this to a hierarchical strategy.
11+
If, for example, Cargo were invoked in `/projects/foo/bar/baz`, then the
1212
following configuration files would be probed for and unified in this order:
1313

14-
* `/home/foo/bar/baz/.cargo/config`
15-
* `/home/foo/bar/.cargo/config`
16-
* `/home/foo/.cargo/config`
17-
* `/home/.cargo/config`
14+
* `/projects/foo/bar/baz/.cargo/config`
15+
* `/projects/foo/bar/.cargo/config`
16+
* `/projects/foo/.cargo/config`
17+
* `/projects/.cargo/config`
1818
* `/.cargo/config`
19+
* `$HOME/.cargo/config`
1920

20-
With this structure you can specify local configuration per-project, and even
21-
possibly check it into version control. You can also specify personal default
21+
With this structure, you can specify configuration per-project, and even
22+
possibly check it into version control. You can also specify personal defaults
2223
with a configuration file in your home directory.
2324

2425
# Configuration format

0 commit comments

Comments
 (0)