1
1
## Cargo Home
2
2
3
3
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.
5
5
You can alter the location of the Cargo home by setting the ` CARGO_HOME ` [ environmental variable] [ env ] .
6
6
The [ home] ( https://crates.io/crates/home ) crate provides an API for getting this location if you need this information inside your Rust crate.
7
7
By default, the Cargo home is located in ` $HOME/.cargo/ ` .
@@ -16,10 +16,10 @@ The Cargo home consists of following components:
16
16
Cargo's global configuration file, see the [config entry in the reference][config].
17
17
18
18
* ` 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 ] .
20
20
21
21
* ` .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!
23
23
24
24
## Directories:
25
25
@@ -83,4 +83,7 @@ Alternatively, the [cargo-cache](https://crates.io/crates/cargo-cache) crate pro
83
83
[ `cargo login` ] : ../commands/cargo-login.md
84
84
[ `cargo vendor` ] : ../commands/cargo-vendor.md
85
85
[ 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) '
86
89
[ env ] : ../reference/environment-variables.md
0 commit comments