You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Problem
My project is getting an "updating crates.io" index on every build, even no-op ones, which is mildly annoying as it slows down builds and is unkind to the GitHub API.
Steps
cargo +nightly new v
Create .cargo/config.toml and src/main.rs as follows:
lf-
changed the title
Cargo does "fetching crates.io index" on every build when build-std is involved
Cargo does "updating crates.io index" on every build when build-std is involved
Apr 22, 2021
Problem
My project is getting an "updating crates.io" index on every build, even no-op ones, which is mildly annoying as it slows down builds and is unkind to the GitHub API.
Steps
cargo +nightly new v
.cargo/config.toml
andsrc/main.rs
as follows:cargo +nightly build --release
Possible Solution(s)
Notes
`CARGO_LOG=debug` output
Output of
cargo version
:The text was updated successfully, but these errors were encountered: