Skip to content

Commit 6b6b0b4

Browse files
committed
Auto merge of #9948 - weihanglo:issue-9940, r=ehuss
Doc about InstallTracker files and `install.root` resolves #9940
2 parents 39ed55e + d54b10f commit 6b6b0b4

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/doc/src/guide/cargo-home.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ The Cargo home consists of following components:
1818
* `credentials.toml`
1919
Private login credentials from [`cargo login`] in order to log in to a [registry][def-registry].
2020

21-
* `.crates.toml`
22-
This hidden file contains [package][def-package] information of crates installed via [`cargo install`]. Do NOT edit by hand!
21+
* `.crates.toml`, `.crates2.json`
22+
These hidden files contain [package][def-package] information of crates installed via [`cargo install`]. Do NOT edit by hand!
2323

2424
## Directories:
2525

src/doc/src/reference/config.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -612,6 +612,9 @@ The `[install]` table defines defaults for the [`cargo install`] command.
612612
Sets the path to the root directory for installing executables for [`cargo
613613
install`]. Executables go into a `bin` directory underneath the root.
614614

615+
To track information of installed executables, some extra files, such as
616+
`.crates.toml` and `.crates2.json`, are also created under this root.
617+
615618
The default if not specified is Cargo's home directory (default `.cargo` in
616619
your home directory).
617620

0 commit comments

Comments
 (0)