@@ -37,13 +37,15 @@ system:
37
37
Useful to set up a build cache tool such as ` sccache ` . See
38
38
[ ` build.rustc-wrapper ` ] to set via config. Setting this to the empty string
39
39
overwrites the config and resets cargo to not use a wrapper.
40
- * ` RUSTC_WORKSPACE_WRAPPER ` --- Instead of simply running ` rustc ` , for workspace
41
- members Cargo will execute this specified wrapper, passing
42
- as its command-line arguments the rustc invocation, with the first argument
43
- being the path to the actual rustc. It affects the filename hash
44
- so that artifacts produced by the wrapper are cached separately.
45
- See [ ` build.rustc-workspace-wrapper ` ] to set via config. Setting this to the empty string
46
- overwrites the config and resets cargo to not use a wrapper for workspace members.
40
+ * ` RUSTC_WORKSPACE_WRAPPER ` --- Instead of simply running ` rustc ` , for workspace members Cargo will
41
+ execute this specified wrapper, passing as its command-line arguments the rustc invocation, with
42
+ the first argument being the path to the actual rustc. When building a single-package project
43
+ without workspaces, that package is considered to be the workspace. It affects the filename hash
44
+ so that artifacts produced by the wrapper are cached separately. See
45
+ [ ` build.rustc-workspace-wrapper ` ] to set via config. Setting this to the empty string overwrites
46
+ the config and resets cargo to not use a wrapper for workspace members. If both ` RUSTC_WRAPPER `
47
+ and ` RUSTC_WORKSPACE_WRAPPER ` are set, then they will be nested: the final invocation is
48
+ ` $RUSTC_WRAPPER $RUSTC_WORKSPACE_WRAPPER $RUSTC ` .
47
49
* ` RUSTDOC ` --- Instead of running ` rustdoc ` , Cargo will execute this specified
48
50
` rustdoc ` instance instead. See [ ` build.rustdoc ` ] to set via config.
49
51
* ` RUSTDOCFLAGS ` --- A space-separated list of custom flags to pass to all ` rustdoc `
0 commit comments