From 490a46d7c446c487f82b0bb96caf40aea9faaa20 Mon Sep 17 00:00:00 2001 From: Christopher Davis Date: Thu, 9 Mar 2023 18:33:47 -0500 Subject: [PATCH] flatpak: Use sparse registry protocol Rust 1.68.0 introduces the sparse registry protocol, which significantly reduces the amount of time cargo takes to fetch the crates.io index. This new protocol only downloads the information for crates we need, rather than all crates in the registry. See https://blog.rust-lang.org/2023/03/09/Rust-1.68.0.html#cargos-sparse-protocol Part-of: --- build-aux/flatpak/org.gnome.Loupe.Devel.json | 1 + 1 file changed, 1 insertion(+) diff --git a/build-aux/flatpak/org.gnome.Loupe.Devel.json b/build-aux/flatpak/org.gnome.Loupe.Devel.json index edaac4f..16c5ce7 100644 --- a/build-aux/flatpak/org.gnome.Loupe.Devel.json +++ b/build-aux/flatpak/org.gnome.Loupe.Devel.json @@ -27,6 +27,7 @@ "--share=network" ], "env" : { + "CARGO_REGISTRIES_CRATES_IO_PROTOCOL" : "sparse", "CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_LINKER" : "clang", "CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER" : "clang", "CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_RUSTFLAGS" : "-C link-arg=-fuse-ld=/usr/lib/sdk/rust-stable/bin/mold",