Skip to content

Commit

Permalink
Auto merge of #12479 - weihanglo:credential, r=epage
Browse files Browse the repository at this point in the history
doc: note the backward compatible `.cargo/credential` file exists
  • Loading branch information
bors committed Aug 11, 2023
2 parents 3705df0 + 94a1217 commit 3a73377
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/doc/src/reference/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,12 @@ be specified with environment variables of the form
`CARGO_REGISTRIES_<name>_TOKEN` where `<name>` 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
Expand Down

0 comments on commit 3a73377

Please sign in to comment.