Skip to content

Commit 299f031

Browse files
committed
docs(config): Group high-level with schema-based credentials descriptions
1 parent 47b6fe6 commit 299f031

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/doc/src/reference/config.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,10 @@ Configuration values with sensitive information are stored in the
301301
`$CARGO_HOME/credentials.toml` file. This file is automatically created and updated
302302
by [`cargo login`] and [`cargo logout`] when using the [`cargo:token`] credential provider.
303303

304+
Tokens are used by some Cargo commands such as [`cargo publish`] for
305+
authenticating with remote registries. Care should be taken to protect the
306+
tokens and to keep them secret.
307+
304308
It follows the same format as Cargo config files.
305309

306310
```toml
@@ -311,10 +315,6 @@ token = "…" # Access token for crates.io
311315
token = "" # Access token for the named registry
312316
```
313317

314-
Tokens are used by some Cargo commands such as [`cargo publish`] for
315-
authenticating with remote registries. Care should be taken to protect the
316-
tokens and to keep them secret.
317-
318318
As with most other config values, tokens may be specified with environment
319319
variables. The token for [crates.io] may be specified with the
320320
`CARGO_REGISTRY_TOKEN` environment variable. Tokens for other registries may

0 commit comments

Comments
 (0)