Skip to content

Commit 365b738

Browse files
committed
doc (book)[13/14]: "Cargo Guide"/"Cargo Home": link terms to glossary
The following term(s) are linked to their Glossary entries: - crate - package - registry
1 parent aeb517b commit 365b738

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

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

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
## Cargo Home
22

33
The "Cargo home" functions as a download and source cache.
4-
When building a crate, Cargo stores downloaded build dependencies in the Cargo home.
4+
When building a [crate][def-crate], Cargo stores downloaded build dependencies in the Cargo home.
55
You can alter the location of the Cargo home by setting the `CARGO_HOME` [environmental variable][env].
66
The [home](https://crates.io/crates/home) crate provides an API for getting this location if you need this information inside your Rust crate.
77
By default, the Cargo home is located in `$HOME/.cargo/`.
@@ -16,10 +16,10 @@ The Cargo home consists of following components:
1616
Cargo's global configuration file, see the [config entry in the reference][config].
1717

1818
* `credentials.toml`
19-
Private login credentials from [`cargo login`] in order to log in to a registry.
19+
Private login credentials from [`cargo login`] in order to log in to a [registry][def-registry].
2020

2121
* `.crates.toml`
22-
This hidden file contains package information of crates installed via [`cargo install`]. Do NOT edit by hand!
22+
This hidden file contains [package][def-package] information of crates installed via [`cargo install`]. Do NOT edit by hand!
2323

2424
## Directories:
2525

@@ -83,4 +83,7 @@ Alternatively, the [cargo-cache](https://crates.io/crates/cargo-cache) crate pro
8383
[`cargo login`]: ../commands/cargo-login.md
8484
[`cargo vendor`]: ../commands/cargo-vendor.md
8585
[config]: ../reference/config.md
86+
[def-crate]: ../appendix/glossary.md#crate '"crate" (glossary entry)'
87+
[def-package]: ../appendix/glossary.md#package '"package" (glossary entry)'
88+
[def-registry]: ../appendix/glossary.md#registry '"registry" (glossary entry)'
8689
[env]: ../reference/environment-variables.md

0 commit comments

Comments
 (0)