Problem
For third party rust compilation tools, we would like to follow the behavior of cargo. This requires using cargo metadata and its respective crate for parsing Cargo.toml files. However, the harness value is missing from the metadata output. Thus cannot follow the correct behavior for things like [[bench]] which tend to use harness = false resulting in --test. See here.
Proposed Solution
Simple add a harness value to the cargo metadata output.
Notes
No response
Problem
For third party rust compilation tools, we would like to follow the behavior of cargo. This requires using
cargo metadataand its respective crate for parsingCargo.tomlfiles. However, the harness value is missing from the metadata output. Thus cannot follow the correct behavior for things like[[bench]]which tend to useharness = falseresulting in--test. See here.Proposed Solution
Simple add a harness value to the
cargo metadataoutput.Notes
No response