Rust distribution mirrors

It would be good to have this capability. It requires a lot of small pieces to come together. We are slowly working in a direction where this will be more feasible.

Some factors involved:

  • It needs to be easy to produce a Rust distribution (the static.rust-lang.org / rustup directory format basically) from source, from the build system. This is one focus of current release infra changes. At some point we will expect that a single command in the build system will be suitable for producing toolchains that rustup can install (with different signing keys).

  • It needs to be easy to mirror the important parts of static.rust-lang.org. I talked to somebody on IRC about this yesterday.

  • It needs to be easy to mirror not only the crates.io index, which carol has worked on, but also the crates.io S3 bucket. I don’t believe anybody has made progress on that.

  • Finally it needs to be possible to redirect the tools to use these alternate sources in a convenient way.

It’s seems totally feasible for me that a single tool could mirror both static.rust-lang.org and crates.io, and help configure the local environment to use them. The data is not particularly complex. Just a matter of legwork.

1 Like