cargo
cargo copied to clipboard
Support for descriptions on third-party subcommands in `cargo --list`
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
r? @ehuss
(rust-highfive has picked a reviewer for you, use r? to override)
:umbrella: The latest upstream changes (presumably #10804) made this pull request unmergeable. Please resolve the merge conflicts.
- Rebased to resolve conflict with #10804 due to touching adjacent lines of /Cargo.toml.
:umbrella: The latest upstream changes (presumably #11029) made this pull request unmergeable. Please resolve the merge conflicts.
- Rebased to resolve conflict with #11029
:umbrella: The latest upstream changes (presumably #11159) made this pull request unmergeable. Please resolve the merge conflicts.
- Rebased to resolve conflict with #11159
:umbrella: The latest upstream changes (presumably #11369) made this pull request unmergeable. Please resolve the merge conflicts.
- Rebased to resolve conflict with #11369 in Cargo.toml
:umbrella: The latest upstream changes (presumably #11807) made this pull request unmergeable. Please resolve the merge conflicts.
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.