cargo icon indicating copy to clipboard operation
cargo copied to clipboard

Support for descriptions on third-party subcommands in `cargo --list`

Open dtolnay opened this issue 3 years ago • 5 comments

What does this PR try to resolve?

This PR implements my proposal in #10662 to enable cargo --list to show descriptions of third-party subcommands, not only the subcommands which are built into Cargo.

How should we test and review this PR?

I have included an ELF note containing a description in the most recent version of the cargo-expand crate. You can confirm that cargo --list is able to print a description for that subcommand (on Linux only, to begin with).

$ cargo install cargo-expand --force
$ gh pr checkout 10663
$ cargo run -- --list

dtolnay avatar May 12 '22 06:05 dtolnay

r? @ehuss

(rust-highfive has picked a reviewer for you, use r? to override)

rust-highfive avatar May 12 '22 06:05 rust-highfive

:umbrella: The latest upstream changes (presumably #10804) made this pull request unmergeable. Please resolve the merge conflicts.

bors avatar Jul 01 '22 05:07 bors

  • Rebased to resolve conflict with #10804 due to touching adjacent lines of /Cargo.toml.

dtolnay avatar Jul 02 '22 18:07 dtolnay

:umbrella: The latest upstream changes (presumably #11029) made this pull request unmergeable. Please resolve the merge conflicts.

bors avatar Sep 01 '22 06:09 bors

  • Rebased to resolve conflict with #11029

dtolnay avatar Sep 02 '22 18:09 dtolnay

:umbrella: The latest upstream changes (presumably #11159) made this pull request unmergeable. Please resolve the merge conflicts.

bors avatar Sep 29 '22 21:09 bors

  • Rebased to resolve conflict with #11159

dtolnay avatar Oct 02 '22 19:10 dtolnay

:umbrella: The latest upstream changes (presumably #11369) made this pull request unmergeable. Please resolve the merge conflicts.

bors avatar Nov 14 '22 14:11 bors

  • Rebased to resolve conflict with #11369 in Cargo.toml

dtolnay avatar Nov 16 '22 05:11 dtolnay

:umbrella: The latest upstream changes (presumably #11807) made this pull request unmergeable. Please resolve the merge conflicts.

bors avatar Mar 07 '23 14:03 bors

I'm sorry for not responding sooner. I'm going to close since nobody on the team has the capacity to help with this at this time. I've followed up on #10662 with some thoughts we had on the design. I think there might be some more discussion needed on the design, but I don't think any of us can follow up with it right now. Hopefully at some time in the future we can engage with this idea more.

ehuss avatar May 18 '23 03:05 ehuss