Skip to content

Commit

Permalink
Use the sparse protocol everywhere
Browse files Browse the repository at this point in the history
It became available in Rust 1.68.0
Additionally lets avoid incremental builds on CI.
That's just extra work which we don't need there.
  • Loading branch information
badboy committed Mar 14, 2023
1 parent 2e8853b commit 074f152
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ commands:
command: |
echo "export RUST_BACKTRACE=1" >> $BASH_ENV
echo "export RUST_LOG=glean_core=debug" >> $BASH_ENV
echo "export CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse" >> $BASH_ENV
echo "export CARGO_INCREMENTAL=0" >> $BASH_ENV
- run:
name: Setup Rust toolchain
command: |
Expand Down
5 changes: 1 addition & 4 deletions taskcluster/scripts/rustup-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ export RUSTFLAGS='-Dwarnings'
export CARGO_INCREMENTAL='0'
export CI='1'
export RUST_LOG='glean_core=debug,glean_ffi=debug'
export CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse

# Rust
RUSTUP_PLATFORM='x86_64-unknown-linux-gnu'
Expand All @@ -36,10 +37,6 @@ else
echo "Installing Rust ${TOOLCHAIN}"
rustup toolchain add "${TOOLCHAIN}" --profile minimal
rustup default "${TOOLCHAIN}"

# Testing new index protocol
# https://blog.rust-lang.org/inside-rust/2023/01/30/cargo-sparse-protocol.html
export CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse
fi

set +eu

0 comments on commit 074f152

Please sign in to comment.