-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Provide a json output format of cargo package --list
#11666
Comments
Related to #11597, but cc @weihanglo |
Thanks for the proposal! Although this doesn't sound too hard to implement, we should still make sure that we have thought of different workarounds and designs before moving on. For workarounds, off the top of my head there are at least two:
The second one is definitely a feasible option I feel like. For the design of this proposal, I'd like to know apart from the issue from |
For me, this isn't specifically about the readme, but more generally about allowing an external to create a
|
We can't if there are path dependencies without a |
Problem
Currently
cargo package --list
outputs filenames line by line, it works fine normally. But whenCargo.toml
contains metadata that uses relative path to point to parent directory, there is no way to get that information. For examplereadme = "../README.md
:cargo package --list
outputsinstead of
It makes sense because it's the filesystem layout in the
.crate
file, but for downstream tooling like maturin it doesn't know that theREADMD.md
is actually coming from../README.md
, which causes PyO3/maturin#1431Proposed Solution
Add a json output format, for example
cargo package --list=json
outputs something likeas proposed by @konstin in PyO3/maturin#1442 (comment)
Notes
No response
The text was updated successfully, but these errors were encountered: