@@ -30,20 +30,20 @@ together. Numbers, strings, and booleans will use the value in the deeper
3030config directory taking precedence over ancestor directories, where the
3131home directory is the lowest priority. Arrays will be joined together.
3232
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+
3341> ** Note:** Cargo also reads config files without the ` .toml ` extension, such as
3442> ` .cargo/config ` . Support for the ` .toml ` extension was added in version 1.39
3543> and is the preferred form. If both files exist, Cargo will use the file
3644> without the extension.
3745
3846
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/ ` ).
4747
4848### Configuration format
4949
0 commit comments