I’m looking at getting a private crates.io registry up and running for my organisation. I’ve so far spun up the crates.io application and a git repository to act as an index, and that seems to be functioning well.
Here’s the issue: I’d like to be able to mirror crates from crates.io as well. Our existing work makes use of Artifactory, which proxies and caches artefacts from remote repositories (e.g. Maven Central).
Mirroring the git index for crate names and versions is fairly easy, but I’m looking for some guidance on how to handle getting the actual crates. Is the community likely to accept something into the crates.io code that fetches crates not found locally from another registry and caches them? Or can anyone suggest a better approach?