Cargo metadata: Expose available build profiles #11228
Labels
A-profiles
Area: profiles
C-feature-request
Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`
Command-metadata
S-needs-info
Status: Needs more info, such as a reproduction or more background for a feature request.
Problem
Currently cargo metadata does not expose which custom build profiles are available.
For corrosion which integrates cargo into CMake it would be nice to expose a list of available build profiles for users to choose from (e.g. in a graphical interface for configuring CMake cache variables).
Proposed Solution
Add an additional field to the
package
section which contains an array of available profile names (dev
,release
,test
,bench
plus any custom profiles).Notes
No response
The text was updated successfully, but these errors were encountered: