File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 1
1
## Build cache
2
2
3
3
Cargo stores the output of a build into the "target" directory. By default,
4
- this is the directory named ` target ` in the root of your workspace. To change
5
- the location, you can set the ` CARGO_TARGET_DIR ` [ environment variable] , the
6
- [ ` build.target-dir ` ] config value, or the ` --target-dir ` command-line flag.
4
+ this is the directory named ` target ` in the root of your
5
+ [ * workspace* ] [ def-worksapce ] . To change the location, you can set the
6
+ ` CARGO_TARGET_DIR ` [ environment variable] , the [ ` build.target-dir ` ] config
7
+ value, or the ` --target-dir ` command-line flag.
7
8
8
9
The directory layout depends on whether or not you are using the ` --target `
9
10
flag to build for a specific platform. If ` --target ` is not specified, Cargo
@@ -90,6 +91,7 @@ configuration][config]. Refer to sccache documentation for more details.
90
91
[`cargo publish`] : ../commands/cargo-publish.md
91
92
[build scripts] : ../reference/build-scripts.md
92
93
[config] : ../reference/config.md
94
+ [def-workspace] : ../appendix/glossary.md# workspace '"workspace" (glossary entry)'
93
95
[environment variable] : ../reference/environment-variables.md
94
96
[incremental output] : ../reference/profiles.md# incremental
95
97
[sccache] : https://github.com/mozilla/sccache
You can’t perform that action at this time.
0 commit comments