From 991e560108be8cf3da1823e24d23968920a3c59f Mon Sep 17 00:00:00 2001 From: Weihang Lo Date: Sun, 26 Sep 2021 18:52:08 +0800 Subject: [PATCH 1/2] Doc about InstallTracker files and `install.root` --- src/doc/src/guide/cargo-home.md | 4 ++-- src/doc/src/reference/config.md | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/doc/src/guide/cargo-home.md b/src/doc/src/guide/cargo-home.md index 00b1b7909d8..b93c8559b3c 100644 --- a/src/doc/src/guide/cargo-home.md +++ b/src/doc/src/guide/cargo-home.md @@ -18,8 +18,8 @@ The Cargo home consists of following components: * `credentials.toml` Private login credentials from [`cargo login`] in order to log in to a [registry][def-registry]. -* `.crates.toml` - This hidden file contains [package][def-package] information of crates installed via [`cargo install`]. Do NOT edit by hand! +* `.crates.toml`, `.crates2.json` + These hidden files contain [package][def-package] information of crates installed via [`cargo install`]. Do NOT edit by hand! ## Directories: diff --git a/src/doc/src/reference/config.md b/src/doc/src/reference/config.md index 7e7137cf8c7..516a0621d6a 100644 --- a/src/doc/src/reference/config.md +++ b/src/doc/src/reference/config.md @@ -612,6 +612,9 @@ The `[install]` table defines defaults for the [`cargo install`] command. Sets the path to the root directory for installing executables for [`cargo install`]. Executables go into a `bin` directory underneath the root. +To track information of installed executables, some extra files, such as +`.crates.toml` and `.crates2.json`, would also be created under this root. + The default if not specified is Cargo's home directory (default `.cargo` in your home directory). From d54b10f5d9d975370efbe5e97e3a40d24517cb22 Mon Sep 17 00:00:00 2001 From: Weihang Lo Date: Sun, 26 Sep 2021 23:36:26 +0800 Subject: [PATCH 2/2] Tweak wording for config.md Co-authored-by: Eric Huss --- src/doc/src/reference/config.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/doc/src/reference/config.md b/src/doc/src/reference/config.md index 516a0621d6a..65918cc5d3e 100644 --- a/src/doc/src/reference/config.md +++ b/src/doc/src/reference/config.md @@ -613,7 +613,7 @@ Sets the path to the root directory for installing executables for [`cargo install`]. Executables go into a `bin` directory underneath the root. To track information of installed executables, some extra files, such as -`.crates.toml` and `.crates2.json`, would also be created under this root. +`.crates.toml` and `.crates2.json`, are also created under this root. The default if not specified is Cargo's home directory (default `.cargo` in your home directory).