Skip to content

Include public/private dependency status in cargo metadata #14502

Closed
@eopb

Description

@eopb

Problem

related to rust-lang/rust#44663

Information about whether or not a dependency is public is not included in the output of cargo metadata.

This could be useful for custom subcommands. cargo override, would find this useful for eopb/cargo-override#121

Proposed Solution

When -Zpublic-dependency is enabled, include a boolean flag in cargo metadatas output at packages[].dependencies[].public.
If -Zpublic-dependency is not enabled, this flag should not appear in cargo metadata output.

Notes

If this feature request is accepted, I'm happy to claim and take a crack at working on it

Metadata

Metadata

Assignees

Labels

C-feature-requestCategory: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`Command-metadataS-acceptedStatus: Issue or feature is accepted, and has a team member available to help mentor or reviewZ-public-dependencyNightly: public-dependency

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions