Skip to content

Stabilize -Z avoid-dev-deps as --minimal-cargo-lock #5133

Open
@infinity0

Description

@infinity0

Original issue: #4988
Implementation: #5012
Documentation: https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#avoid-dev-deps
Issues: Z-avoid-dev-deps Nightly: avoid-dev-deps

-Z avoid-dev-deps flag avoids resolving dev-dependencies in certain targets like install.

@alexcrichton thinks that "in the long run [this wants] to be something like --minimal-cargo-lock which prunes all non-relevant dependencies like platform-specific dependencies that don't apply, dev-deps if you're not building tests, etc."

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-tracking-issueCategory: A tracking issue for something unstable.S-needs-designStatus: Needs someone to work further on the design for the feature or fix. NOT YET accepted.Z-avoid-dev-depsNightly: avoid-dev-deps

    Type

    No type

    Projects

    Status

    Unstable, no backers

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions