diff options
| author | Linus Färnstrand <linus@mullvad.net> | 2023-03-24 12:57:35 +0100 |
|---|---|---|
| committer | Linus Färnstrand <linus@mullvad.net> | 2023-03-24 12:57:35 +0100 |
| commit | c570f1bd6341e76f65056bd33ad205844b55bb77 (patch) | |
| tree | 255ac5c2650bca6f30e6dd62fb2f104f18509a14 | |
| parent | 9940465810a844019f4ac1857cfd5bdc9eeffe79 (diff) | |
| parent | 5c2b3cf1d1fd1cdf62e7751514353c4e257a4f32 (diff) | |
| download | mullvadvpn-c570f1bd6341e76f65056bd33ad205844b55bb77.tar.xz mullvadvpn-c570f1bd6341e76f65056bd33ad205844b55bb77.zip | |
Merge branch 'enable-cargos-sparse-protocol-des-105'
| -rw-r--r-- | building/Dockerfile | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/building/Dockerfile b/building/Dockerfile index 4ba73db628..5cd6b091fa 100644 --- a/building/Dockerfile +++ b/building/Dockerfile @@ -63,6 +63,11 @@ ENV PATH=/root/.cargo/bin:$PATH ENV CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER="aarch64-linux-gnu-gcc" \ PKG_CONFIG_SYSROOT_DIR_aarch64_unknown_linux_gnu=/usr/lib/aarch64-linux-gnu +# Enable Cargo's sparse protocol. Allows fetching the index much faster. +# Is targeted for being the default in Rust 1.70. If that happens, this can be removed. +# https://blog.rust-lang.org/2023/03/09/Rust-1.68.0.html#cargos-sparse-protocol +ENV CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse + # === mold (fast linker) === # Allows linking Rust binaries significantly faster. |
