File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 25
25
26
26
<p local-class =" explainer" >
27
27
To use an API token, run <a href =" https://doc.rust-lang.org/cargo/commands/cargo-login.html" ><code >cargo login</code ></a >
28
- on the command line and paste the key when prompted. This will save it to a local file (<code >~/.cargo/credentials</code > by default).
28
+ on the command line and paste the key when prompted. This will save it to a
29
+ <a href =" https://doc.rust-lang.org/cargo/reference/config.html#credentials" >local credentials file</a >.
29
30
For CI systems you can use the
30
31
<a href =" https://doc.rust-lang.org/cargo/reference/config.html?highlight=CARGO_REGISTRY_TOKEN#credentials" ><code >CARGO_REGISTRY_TOKEN</code ></a >
31
32
environment variable, but make sure that the token stays secret!
You can’t perform that action at this time.
0 commit comments