mirror of
https://github.com/storytold/autocraft.git
synced 2026-12-01 10:33:55 +01:00
autocraft-server crate-mirror serve terminates TLS for index.crates.io, static.crates.io, github.com and api.github.com so clients keep the public URLs and cargo's registry and git checkout paths. Index files are cached 60 s and served stale up to 7 days while upstream fails; .crate files are stored only when their sha256 equals the upstream index cksum; both stores are LRU with byte caps. Git serves upload-pack from bare mirrors of an allowlist, fetched every 2 minutes and on stale info/refs. CrateVerifier gains checksum() and treats an index 404 as an unknown crate.