bindeps: Update crates.io to support binary dependencies #12555
Labels
A-interacts-with-crates.io
Area: interaction with registries
S-triage
Status: This issue is waiting on initial triage.
Z-bindeps
Nightly: binary artifact dependencies
This issue is a tracker for updating crates.io to support binary dependencies. I'm not sure when we should pull the trigger to add this, since this is not a reversible decision.
#12421 added support for bindeps in a registry. This requires adding 3 new fields to the index for dependencies, as well as the publish protocol.
Copying my notes from #10405, but I think these are now outdated. However, the general gist should still be the same.
Update crates.io
This should be done later, closer to when we are gearing up to stabilize bindeps. Adding the fields to the index is a permanent decision, so we need to be sure it has the right design.
EncodableCrateDependency
, this is the structure it receives from cargo.Dependency
, this is the structure it uses for serializing to the index.v
field here needs to be set to 3 if it contains a dependency with an artifact dependency. (See commentary above about possibly passing thev
field in via the JSON API so that a registry does not need to process it.)src/tests/krate/publish.rs
.The text was updated successfully, but these errors were encountered: