diff --git a/src/doc/src/reference/config.md b/src/doc/src/reference/config.md index ae80deff14f..d1f2b04d35e 100644 --- a/src/doc/src/reference/config.md +++ b/src/doc/src/reference/config.md @@ -318,6 +318,12 @@ be specified with environment variables of the form `CARGO_REGISTRIES__TOKEN` where `` is the name of the registry in all capital letters. +> **Note:** Cargo also reads and writes credential files without the `.toml` +> extension, such as `.cargo/credentials`. Support for the `.toml` extension +> was added in version 1.39. In version 1.68, Cargo writes to the file with the +> extension by default. However, for backward compatibility reason, when both +> files exist, Cargo will read and write the file without the extension. + ### Configuration keys This section documents all configuration keys. The description for keys with