Skip to content

Resolver is too strict in its multiple-crates-links-ing check #5969

Open
@kamalmarhubi

Description

@kamalmarhubi

I'm attempting to use a feature to allow controlling which version of a -sys crate is used. It looks like I'm running afoul of the restriction on multiple crates having a links specified for the same library, even though in any particular invocation only one will be used.

Does the resolver ignore features when deciding if a library is being linked multiple times? It seems that it is, and I think that it should only check the final resolved dependency tree for the target being built, and in particular after the features are applied.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-linksArea: `links` native library links settingA-optional-dependenciesArea: dependencies with optional=trueS-needs-designStatus: Needs someone to work further on the design for the feature or fix. NOT YET accepted.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions