cargo-component icon indicating copy to clipboard operation
cargo-component copied to clipboard

Support multiple target dependencies with the same package id but different versions.

Open rylev opened this issue 1 year ago • 0 comments

Currently target dependencies are specified through a map where the key is the package:name package id. However, multiple dependencies can have the same id if they are of different versions. It seems it is currently impossible to satisfy two dependencies if they have the same package:name identifier.

I'm not sure the right way to solve this issue. Cargo component models dependencies as a HashMap where the keys are PackageIds, but there might be more than one dependency with the same package id. It might seem that we would have to rethink how these dependencies are specified.

rylev avatar Nov 06 '23 07:11 rylev