Skip to content

Lib package names from cargo differ (dash vs. underscore) #259

@adpaco-aws

Description

@adpaco-aws

The change in rust-lang/cargo#12783 causes cargo to return lib package names which are different to the names obtained through cargo metadata. More specifically, the cargo name will use underscores (_) instead of dashes (-), otherwise they are the same.

We first noticed this discrepancy during a Rust toolchain upgrade in model-checking/kani#3102, where we worked around this issue by introducing a weaker comparison between the targets. cargo metadata was specifically mentioned in this comment from rust-lang/cargo#12783 as an area that would be affected.

What's the long-term plan to avoid the discrepancy? Does cargo metadata need to do the same replacement?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions