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: <https://gitlab.gnome.org/Incubator/loupe/-/merge_requests/134>
This commit is contained in:
Christopher Davis 2023-03-09 18:33:47 -05:00 • committed by Marge Bot
parent a2a9b4134b
commit 490a46d7c4

View file

@ -27,6 +27,7 @@
"--share=network" "--share=network"
], ],
"env" : { "env" : {
"CARGO_REGISTRIES_CRATES_IO_PROTOCOL" : "sparse",
"CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_LINKER" : "clang", "CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_LINKER" : "clang",
"CARGO_TARGET_AARCH64_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", "CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_RUSTFLAGS" : "-C link-arg=-fuse-ld=/usr/lib/sdk/rust-stable/bin/mold",