workspace: add Rust EFI infrastructure
This bumps rules_rust, cleans up the toolchains with the new version.
It also adds the Prost codegen to "normal" crate set as well as a new
crate set specific to EFI. This is separate because of Rust no-std's
dependence on create feature tags.
Change-Id: Ie76e66ee83696948391420ca3b011a3a71258690
Reviewed-on: https://review.monogon.dev/c/monogon/+/2202
Tested-by: Jenkins CI
Reviewed-by: Serge Bazanski <serge@monogon.tech>
diff --git a/third_party/rust_efi/BUILD.bazel b/third_party/rust_efi/BUILD.bazel
new file mode 100644
index 0000000..76365c5
--- /dev/null
+++ b/third_party/rust_efi/BUILD.bazel
@@ -0,0 +1,67 @@
+"""
+@generated
+cargo-raze generated Bazel file.
+
+DO NOT EDIT! Replaced on runs of cargo-raze
+"""
+
+package(default_visibility = ["//visibility:public"])
+
+licenses([
+ "notice", # See individual crates for specific licenses
+])
+
+# Aliased targets
+alias(
+ name = "prost",
+ actual = "@rsefi__prost__0_12_1//:prost",
+ tags = [
+ "cargo-raze",
+ "manual",
+ ],
+)
+
+alias(
+ name = "prost_types",
+ actual = "@rsefi__prost_types__0_12_1//:prost_types",
+ tags = [
+ "cargo-raze",
+ "manual",
+ ],
+)
+
+alias(
+ name = "uefi",
+ actual = "@rsefi__uefi__0_24_0//:uefi",
+ tags = [
+ "cargo-raze",
+ "manual",
+ ],
+)
+
+alias(
+ name = "uefi_services",
+ actual = "@rsefi__uefi_services__0_21_0//:uefi_services",
+ tags = [
+ "cargo-raze",
+ "manual",
+ ],
+)
+
+# Export file for Stardoc support
+exports_files(
+ glob([
+ "**/*.bazel",
+ "**/*.bzl",
+ ]),
+ visibility = ["//visibility:public"],
+)
+
+filegroup(
+ name = "srcs",
+ srcs = glob([
+ "**/*.bazel",
+ "**/*.bzl",
+ ]),
+ visibility = ["//visibility:public"],
+)