build/bazel: set supported_platform_triples for crate_universe
The default setting contains way too many targets which are getting spliced together. By overriding them to our actual triples, we can reduce the analyze time by over 30s.
Change-Id: I8b4d4066fcdaf299f55921cc0390256f416372c9
Reviewed-on: https://review.monogon.dev/c/monogon/+/3848
Tested-by: Jenkins CI
Reviewed-by: Lorenz Brun <lorenz@monogon.tech>
diff --git a/build/bazel/rust.MODULE.bazel b/build/bazel/rust.MODULE.bazel
index 4d29efe..52ed164 100644
--- a/build/bazel/rust.MODULE.bazel
+++ b/build/bazel/rust.MODULE.bazel
@@ -15,6 +15,9 @@
cargo_lockfile = "//third_party/rust:Cargo.lock",
generate_binaries = True,
manifests = ["//third_party/rust:Cargo.toml"],
+ supported_platform_triples = [
+ "x86_64-unknown-linux-gnu",
+ ],
)
crate.from_cargo(
name = "crate_index_efi",
@@ -26,5 +29,8 @@
"x86_64-unknown-uefi",
],
)
-use_repo(crate, "crate_index")
-use_repo(crate, "crate_index_efi")
+use_repo(
+ crate,
+ "crate_index",
+ "crate_index_efi",
+)