Skip to content

Commit

Permalink
rustPlatform.fetchCargoTarball: remove explicit sparse protocol
Browse files Browse the repository at this point in the history
sparse protocol is now the default since rust 1.70

(cherry picked from commit f4a6750)
  • Loading branch information
figsoda authored and erictapen committed Jun 7, 2023
1 parent 6faa042 commit 9a7c6e1
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions pkgs/build-support/rust/fetch-cargo-tarball/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,6 @@ in stdenv.mkDerivation ({
export CARGO_HOME=$(mktemp -d cargo-home.XXX)
CARGO_CONFIG=$(mktemp cargo-config.XXXX)
# https://blog.rust-lang.org/2023/03/09/Rust-1.68.0.html#cargos-sparse-protocol
# planned to become the default in 1.70
export CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse
if [[ -n "$NIX_CRATES_INDEX" ]]; then
cat >$CARGO_HOME/config.toml <<EOF
[source.crates-io]
Expand Down

0 comments on commit 9a7c6e1

Please sign in to comment.