@@ -30,20 +30,20 @@ together. Numbers, strings, and booleans will use the value in the deeper
30
30
config directory taking precedence over ancestor directories, where the
31
31
home directory is the lowest priority. Arrays will be joined together.
32
32
33
+ At present, when being invoked from a workspace, Cargo does not read config
34
+ files from crates within the workspace. i.e. if a workspace has two crates in
35
+ it, named ` /projects/foo/bar/baz/mylib ` and ` /projects/foo/bar/baz/mybin ` , and
36
+ there are Cargo configs at ` /projects/foo/bar/baz/mylib/.cargo/config.toml `
37
+ and ` /projects/foo/bar/baz/mybin/.cargo/config.toml ` , Cargo does not read
38
+ those configuration files if it is invoked from the workspace root
39
+ (` /projects/foo/bar/baz/ ` ).
40
+
33
41
> ** Note:** Cargo also reads config files without the ` .toml ` extension, such as
34
42
> ` .cargo/config ` . Support for the ` .toml ` extension was added in version 1.39
35
43
> and is the preferred form. If both files exist, Cargo will use the file
36
44
> without the extension.
37
45
38
46
39
- > ** Note:** At present, when being invoked from a workspace, Cargo does not read
40
- > config files from crates within the workspace. i.e. if a workspace has two
41
- > crates in it, named ` /projects/foo/bar/baz/mylib ` and
42
- > ` /projects/foo/bar/baz/mybin ` , and there are Cargo configs at
43
- > ` /projects/foo/bar/baz/mylib/.cargo/config.toml `
44
- > and ` /projects/foo/bar/baz/mybin/.cargo/config.toml ` , Cargo does not read
45
- > those configuration files if it is invoked from the workspace root
46
- > (` /projects/foo/bar/baz/ ` ).
47
47
48
48
### Configuration format
49
49
0 commit comments