Skip to content

Commit

Permalink
settings/api-tokens: Replace hardcoded credentials path with cargo do…
Browse files Browse the repository at this point in the history
…cs link
  • Loading branch information
federicomenaquintero authored and Turbo87 committed Sep 12, 2023
1 parent 1b516b5 commit 74fe2cc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/components/settings/api-tokens.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@

<p local-class="explainer">
To use an API token, run <a href="https://doc.rust-lang.org/cargo/commands/cargo-login.html"><code>cargo login</code></a>
on the command line and paste the key when prompted. This will save it to a local file (<code>~/.cargo/credentials</code> by default).
on the command line and paste the key when prompted. This will save it to a
<a href="https://doc.rust-lang.org/cargo/reference/config.html#credentials">local credentials file</a>.
For CI systems you can use the
<a href="https://doc.rust-lang.org/cargo/reference/config.html?highlight=CARGO_REGISTRY_TOKEN#credentials"><code>CARGO_REGISTRY_TOKEN</code></a>
environment variable, but make sure that the token stays secret!
Expand Down

0 comments on commit 74fe2cc

Please sign in to comment.