Skip to content

Commit 3a73377

Browse files
committed
Auto merge of #12479 - weihanglo:credential, r=epage
doc: note the backward compatible `.cargo/credential` file exists
2 parents 3705df0 + 94a1217 commit 3a73377

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/doc/src/reference/config.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,12 @@ be specified with environment variables of the form
318318
`CARGO_REGISTRIES_<name>_TOKEN` where `<name>` is the name of the registry in
319319
all capital letters.
320320

321+
> **Note:** Cargo also reads and writes credential files without the `.toml`
322+
> extension, such as `.cargo/credentials`. Support for the `.toml` extension
323+
> was added in version 1.39. In version 1.68, Cargo writes to the file with the
324+
> extension by default. However, for backward compatibility reason, when both
325+
> files exist, Cargo will read and write the file without the extension.
326+
321327
### Configuration keys
322328

323329
This section documents all configuration keys. The description for keys with

0 commit comments

Comments
 (0)