I'm exploring options for a proper build-pipeline setup. One of the time consuming tasks is to download the crates.io index the very first time, while updates run rather fast. Is there way to run an index download after a bare rust installation to allow "caching" this setup in the build pipeline and thus only updates of the index is executed when building an actual crate as part of the pipeline?
The only workaround I could think of would be to provide a simple "hello world" crate as a pre-step to get the initial crates.io index while building this crate but this feels more like workaround/hack rather proper pipeline setup and "cache" preparation.
Any hints are much appreciated.