-
Notifications
You must be signed in to change notification settings - Fork 96
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
Add structs output by --message-format=json
?
#45
Comments
Feels right. We'd need to update all the docs to mention that it's not just about |
Author of escargot here, a crate that provides an API over various cargo commands Just so I know where we might fall on collaboration, consolidation, or orthogonality of effort, @oli-obk what is your expected scope of this kind of work? Just defining the structs? Also pulling in an API that calls cargo and returns the data for the structs?
btw the reason for escargot does not include struct definitions is to ensure clients have the control they need for reducing overhead.
Probably not worth it with all the other overhead in these kind of operations. |
The full thing. Structures and a convenient API. I think the correct collaboration here would be to define the structures here, and use all the call-logic of escargot by adding it as a dependency and either exposing it directly or just using it and exposing a simpler API. Not sure what the correct course of action is here. I don't really want to go into extension trait territory. Alternatively we could merge the two crates and put the structs and serde stuff behind a cargo feature. |
For background, when I created escargot, I didn't think of trying to contribute what I was doing to this crate because I thought the focus of this was just on The advantage of If you want to take that on, I won't stop you and will support you. For me personally, I think I'd keep these as separate and have this issue and relevant PR redirected over to escargot. As a side note, I saw interest, at least from killercup, to modularize the cargo crate. I doubt it will be able to replace the use case for either of our crates but there might be interesting parts to integrate with. |
I think this issue is essentially resolved by #64. |
I'm using the following to parse
cargo build --message-format=json
. I see other crates have a similar redefinition of this, for example assert_cmd.They are apparently stable. I'm wondering if it's worth making cargo_metadata the canonical place for these?
The text was updated successfully, but these errors were encountered: