blob: 355b394d7d2ca0d349b77a1753cc8ab731d7362c [file] [log] [blame]
Lorenz Brund141d182023-10-02 15:07:01 +02001load("@rules_rust//proto/prost:defs.bzl", "rust_prost_toolchain")
Tim Windelschmidt223609c2024-01-12 22:59:20 +01002load("@rules_rust//rust:defs.bzl", "rust_library_group")
3
4rust_library_group(
5 name = "prost_runtime_efi",
6 deps = [
7 "@crate_index_efi//:prost",
8 ],
9)
Lorenz Brund141d182023-10-02 15:07:01 +020010
11rust_prost_toolchain(
12 name = "prost_efi_toolchain_impl",
13 is_nostd = True,
Tim Windelschmidt223609c2024-01-12 22:59:20 +010014 prost_plugin = "@crate_index//:protoc-gen-prost__protoc-gen-prost",
15 prost_runtime = ":prost_runtime_efi",
16 prost_types = "@crate_index_efi//:prost-types",
Lorenz Brund141d182023-10-02 15:07:01 +020017 # This defaults to a non-empty value, which triggers an error that not all
18 # tonic flags are set. We do not want tonic, so explicitly set this to
19 # an empty string.
20 tonic_plugin_flag = "",
21)
22
23toolchain(
24 name = "prost_efi_toolchain",
25 toolchain = "prost_efi_toolchain_impl",
26 toolchain_type = "@rules_rust//proto/prost:toolchain_type",
27)