feature: default-run included in cargo metadata
#9497
Labels
C-feature-request
Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`
Command-metadata
E-easy
Experience: Easy
Describe the problem you are trying to solve
I'm writing a subcommand that mirrors cargo, but records things under a time-travelling debugger instead of running them. When someone types
cargo rr run
I need to get whatever binary cargo would have run.In #9491 I requested a solution for this specific use case (something like
cargo build --default-bin
). When looking into replicating the algorithm cargo uses as a workaround I learned cargo doesn't expose the fielddefault_run
incargo metadata
.Describe the solution you'd like
The
default_run
field under[package]
inCargo.toml
is included incargo metadata
Notes
Based on a cursory look I think this would just require adding a field to
SerializedPackage
and changingPackage::serialized
to propagate the field value fromManifest
. I'd be happy to file a PR for this.The text was updated successfully, but these errors were encountered: