bytecodealliance / bytecodealliance/cargo-component

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

Open
#181 0 comments 3 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
593
Forks
68
PR merge metrics
No merged PRs in 30d

Description

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 `PackageId`s, 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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.