Skip to content

Commit

Permalink
Merge pull request #3506 from schuelermine/fix/cargo-login-security
Browse files Browse the repository at this point in the history
Remove direction to authenticate with `cargo login {API token}`
  • Loading branch information
chriskrycho committed Apr 17, 2024
2 parents a15d78c + e9a58e3 commit 5559968
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/ch14-02-publishing-to-crates-io.md
Original file line number Diff line number Diff line change
Expand Up @@ -273,10 +273,11 @@ in via a GitHub account. (The GitHub account is currently a requirement, but
the site might support other ways of creating an account in the future.) Once
you’re logged in, visit your account settings at
[https://crates.io/me/](https://crates.io/me/)<!-- ignore --> and retrieve your
API key. Then run the `cargo login` command with your API key, like this:
API key. Then run the `cargo login` command and paste your API key when prompted, like this:

```console
$ cargo login abcdefghijklmnopqrstuvwxyz012345
$ cargo login
abcdefghijklmnopqrstuvwxyz012345
```

This command will inform Cargo of your API token and store it locally in
Expand Down

0 comments on commit 5559968

Please sign in to comment.