You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description of the problem: This shows cargo login <token> rather than cargo login with <token> pasted in. This is encouraging users to put their token in their command history (which could also be synced across computers) and is always visible (which is true of pasting, for now, but that can be fixed, see rust-lang/cargo#7813 )
Suggested fix: Copy what the Cargo book does: show the prompt with the token being pasted in.
The text was updated successfully, but these errors were encountered:
Ah, we should definitely fix this while working on the 2024 edition revisions. I will see if I can write a PR updating the text (after reading the Cargo book section!) this afternoon. Thanks, @epage!
Aha! @schuelermine caught this last year and opened #3506 to fix it, so we should have it fixed in the online text when that merges after passing CI! 🎉
login
token
publish
main
branch to see if this has already been fixed, in this file:URL to the section(s) of the book with this problem: https://doc.rust-lang.org/book/ch14-02-publishing-to-crates-io.html#setting-up-a-cratesio-account
Description of the problem: This shows
cargo login <token>
rather thancargo login
with<token>
pasted in. This is encouraging users to put their token in their command history (which could also be synced across computers) and is always visible (which is true of pasting, for now, but that can be fixed, see rust-lang/cargo#7813 )Suggested fix: Copy what the Cargo book does: show the prompt with the token being pasted in.
The text was updated successfully, but these errors were encountered: