Skip to content

Add cargo publish --view-crates / --view-docs command #10614

Open
@umgefahren

Description

@umgefahren

Problem

The very excellent GitHub CLI allows to open a browser directly from the command line, showing the current repository. This is just a very nice quality of life improvement that would be great for cargo too.

After publishing it would be great to be able to view the new docs.rs and crates.io page to admire your work or check things faster.

Proposed Solution

I would suggest to add two command line options to the cargo publish command:

  • cargo publish --view-crates for viewing the associated page on crates.io.
  • cargo publish --view-docs for viewing the associated page on docs.rs

Notes

The addition to cargo publish might not be ideal. It could suggest other meaning.

It is also an implementation effort that would take time and only be an improvement for a small number of people.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-feature-requestCategory: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`Command-publishE-mediumExperience: MediumS-needs-designStatus: Needs someone to work further on the design for the feature or fix. NOT YET accepted.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions