File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -301,6 +301,10 @@ Configuration values with sensitive information are stored in the
301
301
` $CARGO_HOME/credentials.toml ` file. This file is automatically created and updated
302
302
by [ ` cargo login ` ] and [ ` cargo logout ` ] when using the [ ` cargo:token ` ] credential provider.
303
303
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
+
304
308
It follows the same format as Cargo config files.
305
309
306
310
``` toml
@@ -311,10 +315,6 @@ token = "…" # Access token for crates.io
311
315
token = " …" # Access token for the named registry
312
316
```
313
317
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
-
318
318
As with most other config values, tokens may be specified with environment
319
319
variables. The token for [ crates.io] may be specified with the
320
320
` CARGO_REGISTRY_TOKEN ` environment variable. Tokens for other registries may
You can’t perform that action at this time.
0 commit comments