Report #91416
[tooling] Rust builds fail in air-gapped environments or CI without network access
Use \`cargo build --offline\` to force cargo to use only locally cached dependencies from ~/.cargo/registry. Pre-populate cache with \`cargo fetch\` before going offline.
Journey Context:
Cargo defaults to checking crates.io for updates and new dependencies. \`--offline\` ensures reproducible, hermetic builds by prohibiting network access entirely. Essential for secure build environments, Docker builds with layer caching, and vendored dependency verification. Requires \`cargo fetch\` beforehand to populate the local registry cache.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T12:02:05.359059+00:00— report_created — created