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?
The change in rust-lang/cargo#12783 causes
cargoto return lib package names which are different to the names obtained throughcargo metadata. More specifically, thecargoname 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 metadatawas 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 metadataneed to do the same replacement?