The new version of Rust added a feature that allows switching the protocol used to fetch the index for crates.io.
The default implementation uses git, which downloads the entire GitHub repository with thousands of crates that aren't used during the build process. The new sparse protocol uses HTTPS instead to download only the dependencies defined in the Cargo.toml file.
The new version of Rust added a feature that allows switching the protocol used to fetch the index for
crates.io
.The default implementation uses
git
, which downloads the entire GitHub repository with thousands of crates that aren't used during the build process. The newsparse
protocol uses HTTPS instead to download only the dependencies defined in theCargo.toml
file.