Skip to content

Commit

Permalink
doc (book)[14/14]: "Cargo Guide"/"Build Cache": link terms to glossary
Browse files Browse the repository at this point in the history
The following term(s) are linked to their Glossary entries:
    - workspace
  • Loading branch information
salewski committed Nov 21, 2020
1 parent 365b738 commit ab78221
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/doc/src/guide/build-cache.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
## Build cache

Cargo stores the output of a build into the "target" directory. By default,
this is the directory named `target` in the root of your workspace. To change
the location, you can set the `CARGO_TARGET_DIR` [environment variable], the
[`build.target-dir`] config value, or the `--target-dir` command-line flag.
this is the directory named `target` in the root of your
[*workspace*][def-worksapce]. To change the location, you can set the
`CARGO_TARGET_DIR` [environment variable], the [`build.target-dir`] config
value, or the `--target-dir` command-line flag.

The directory layout depends on whether or not you are using the `--target`
flag to build for a specific platform. If `--target` is not specified, Cargo
Expand Down Expand Up @@ -90,6 +91,7 @@ configuration][config]. Refer to sccache documentation for more details.
[`cargo publish`]: ../commands/cargo-publish.md
[build scripts]: ../reference/build-scripts.md
[config]: ../reference/config.md
[def-workspace]: ../appendix/glossary.md#workspace '"workspace" (glossary entry)'
[environment variable]: ../reference/environment-variables.md
[incremental output]: ../reference/profiles.md#incremental
[sccache]: https://github.com/mozilla/sccache

0 comments on commit ab78221

Please sign in to comment.