Skip to content

Renamed optional dependency should use the renamed name #5753

Closed
@withoutboats

Description

@withoutboats

Given a Cargo.toml dependency stated like this:

[dependencies.dalek]
package = "ed25519-dalek"
version = "0.7.0"
optional = true

I expected to be able to turn the dependency on with cargo build --features dalek. However, this does not work. cargo build --features ed25519-dalek does work.

I think we should be consistent here in treating the dependency name, not the package name, as the name of this optional dependency.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions