diff --git a/src/doc/src/appendix/glossary.md b/src/doc/src/appendix/glossary.md index 9186b51c3bc..2b04a559969 100644 --- a/src/doc/src/appendix/glossary.md +++ b/src/doc/src/appendix/glossary.md @@ -188,12 +188,12 @@ The meaning of the term *target* depends on the context: [list of targets][targets] are configured in the `Cargo.toml` [*manifest*](#manifest), often inferred automatically by the [directory layout] of the source files. -- **Target Directory** --- Cargo places all built artifacts and intermediate - files in the *target* directory. By default this is a directory named - `target` at the [*workspace*](#workspace) root, or the package root if not - using a workspace. The directory may be changed with the `--target-dir` - command-line option, the `CARGO_TARGET_DIR` [environment variable], or the - `build.target-dir` [config option]. +- **Target Directory** --- Cargo places built artifacts in the *target* directory. + By default this is a directory named `target` at the [*workspace*](#workspace) root, + or the package root if not using a workspace. The directory may be changed with + the `--target-dir` command-line option, the `CARGO_TARGET_DIR` [environment variable], + or the `build.target-dir` [config option]. + For more information see the [build cache] documentation. - **Target Architecture** --- The OS and machine architecture for the built artifacts are typically referred to as a *target*. - **Target Triple** --- A triple is a specific format for specifying a target @@ -251,6 +251,7 @@ manifest is located. (Compare with [*package root*](#package).) [Directory Sources]: ../reference/source-replacement.md#directory-sources [Local Registry Sources]: ../reference/source-replacement.md#local-registry-sources [Source Replacement]: ../reference/source-replacement.md +[build cache]: ../reference/build-cache.html [cargo-unstable]: ../reference/unstable.md [config option]: ../reference/config.md [crates.io]: https://crates.io/ diff --git a/src/doc/src/reference/build-cache.md b/src/doc/src/reference/build-cache.md index 500d04a8f46..5f0c071b0fd 100644 --- a/src/doc/src/reference/build-cache.md +++ b/src/doc/src/reference/build-cache.md @@ -70,9 +70,9 @@ change. Some of these directories are: Directory | Description ----------|------------ -build-dir/debug/deps/ | Dependencies and other artifacts. -build-dir/debug/incremental/ | `rustc` [incremental output], a cache used to speed up subsequent builds. -build-dir/debug/build/ | Output from [build scripts]. +\/debug/deps/ | Dependencies and other artifacts. +\/debug/incremental/ | `rustc` [incremental output], a cache used to speed up subsequent builds. +\/debug/build/ | Output from [build scripts]. ## Dep-info files