From 19229a4b191b4a81e53059af4e3778b70501f160 Mon Sep 17 00:00:00 2001 From: Jacob Finkelman Date: Fri, 4 Mar 2022 17:24:36 +0000 Subject: [PATCH 1/2] Don't recommend leaking tokens into the console history --- src/doc/src/reference/publishing.md | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/doc/src/reference/publishing.md b/src/doc/src/reference/publishing.md index 01d6223043c..e43fa46f18a 100644 --- a/src/doc/src/reference/publishing.md +++ b/src/doc/src/reference/publishing.md @@ -13,11 +13,16 @@ limit to the number of versions which can be published, however. First things first, you’ll need an account on [crates.io] to acquire an API token. To do so, [visit the home page][crates.io] and log in via a GitHub account (required for now). After this, visit your [Account -Settings](https://crates.io/me) page and run the [`cargo login`] command -specified. +Settings](https://crates.io/me) page and run the [`cargo login`] command. ```console -$ cargo login abcdefghijklmnopqrstuvwxyz012345 +$ cargo login +``` + +Then at the propt put in the token specified. +```console +please paste the API Token found on https://crates.io/me below +abcdefghijklmnopqrstuvwxyz012345 ``` This command will inform Cargo of your API token and store it locally in your From 3e7169185a1aa9aafc03d04e5ab13319e3cd10dd Mon Sep 17 00:00:00 2001 From: Jacob Finkelman Date: Fri, 4 Mar 2022 14:52:10 -0500 Subject: [PATCH 2/2] prompt not propt Co-authored-by: bjorn3 --- src/doc/src/reference/publishing.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/doc/src/reference/publishing.md b/src/doc/src/reference/publishing.md index e43fa46f18a..81aa4acd640 100644 --- a/src/doc/src/reference/publishing.md +++ b/src/doc/src/reference/publishing.md @@ -19,7 +19,7 @@ Settings](https://crates.io/me) page and run the [`cargo login`] command. $ cargo login ``` -Then at the propt put in the token specified. +Then at the prompt put in the token specified. ```console please paste the API Token found on https://crates.io/me below abcdefghijklmnopqrstuvwxyz012345