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
feat(package): add unstable --message-format flag (rust-lang#15311)
### What does this PR try to resolve?
rust-lang#11666
This adds an unstable `--message-format` flag to `cargo package` to help
`--list` output in newline-delimited JSON format.
See
<https://github.com/weihanglo/cargo/blob/package-list-fmt/src/doc/man/cargo-package.md#package-options>
for more on what is provided.
Open questions
- `--list json` or `--message-format json`, see
rust-lang#15311 (comment)
- a single json blob vs N? What is N? See
rust-lang#15311 (comment)
- Is the current format `plain` or `human`, see
rust-lang#15311 (comment)
- snake_case or kebab-case, see
rust-lang#15311 (comment)
### How should we test and review this PR?
* This currently outputs absolute paths.
If we don't want to show absolute paths in the JSON output,
could switch to relative path to either package root or cwd
(I prefer the latter though).
* The actual schema, format option names, and field names is open to
discuss and change. See also
<rust-lang#12377> for reference.
0 commit comments