Alternate crates-io index/repo?
⚓ Rust 📅 2025-09-15 👤 surdeus 👁️ 8My ultimate goal is this:
I need a private (in house) - offline crates.io mirror.
This happens to be one of the most UNDOCUMENTED and VERY FUSTRATING thing about rust and the rust ecosystem and everything I can find via GOOGLE it is BEYOND fragile and brittle and does not work fully and completely.
My requirement is quite simple (in my opinion)
a) Read a text file that lists the crates (and versions) that are approved
b) If the crate is not listed in the "approved list" - do not mirror this.
c) Run some script 'outside' connected to the internet.
d) The result should be a TAR file of some sort.
move/copy that TAR file to the offline environment.
e) Unpack the TAR FILE
Serve files from that TAR FILE.
f) Also support locally created/maintained crates in some form via a GITLAB type server.
This seems easier - we do not want to publish to the mirror server.
Why? We would want to go through the "gitlab code review process" for our internal crates.
5 posts - 3 participants
🏷️ Rust_feed