Skip to content

Success message containing link to crates.io after cargo publish #11768

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
blyxyas opened this issue Feb 25, 2023 · 2 comments
Closed

Success message containing link to crates.io after cargo publish #11768

blyxyas opened this issue Feb 25, 2023 · 2 comments
Assignees
Labels
C-feature-request Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`

Comments

@blyxyas
Copy link
Member

blyxyas commented Feb 25, 2023

Problem

The output of cargo publish could be a little bit more helpful.

A lot of people want to check that their crate was published successfully after running cargo publish. It would be really handy if after a successful publishing process, Cargo printed the URL for checking your crate.

Proposed Solution

Maybe something like:

$ cargo publish
    [...]
    Updating crates.io index

Your crate was successfully published to crates.io! Check it at https://crates.io/crates/<CRATE>.

$

(Where <CRATE> gets replaced with the published crate)

Notes

This takes advantage of the URL recognition that some terminal emulators have, and it's a nice touch for first-time publishers.

@blyxyas blyxyas added the C-feature-request Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted` label Feb 25, 2023
@0xPoe
Copy link
Member

0xPoe commented Feb 26, 2023

We might need to consider other registries. Because Cargo also supports publishing to different registries.

@blyxyas
Copy link
Member Author

blyxyas commented Apr 15, 2023

Guess I'll just do it myself
@rustbot claim

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-feature-request Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants