| Lorenz Brun | d141d18 | 2023-10-02 15:07:01 +0200 | [diff] [blame] | 1 | load("@rules_rust//proto/prost:defs.bzl", "rust_prost_toolchain") |
| Tim Windelschmidt | 223609c | 2024-01-12 22:59:20 +0100 | [diff] [blame] | 2 | load("@rules_rust//rust:defs.bzl", "rust_library_group") |
| 3 | |
| 4 | rust_library_group( |
| 5 | name = "prost_runtime_efi", |
| 6 | deps = [ |
| 7 | "@crate_index_efi//:prost", |
| 8 | ], |
| 9 | ) |
| Lorenz Brun | d141d18 | 2023-10-02 15:07:01 +0200 | [diff] [blame] | 10 | |
| 11 | rust_prost_toolchain( |
| 12 | name = "prost_efi_toolchain_impl", |
| 13 | is_nostd = True, |
| Tim Windelschmidt | 223609c | 2024-01-12 22:59:20 +0100 | [diff] [blame] | 14 | prost_plugin = "@crate_index//:protoc-gen-prost__protoc-gen-prost", |
| 15 | prost_runtime = ":prost_runtime_efi", |
| 16 | prost_types = "@crate_index_efi//:prost-types", |
| Tim Windelschmidt | e5e90a8 | 2024-07-17 23:46:22 +0200 | [diff] [blame] | 17 | proto_compiler = "@protobuf//:protoc", |
| Lorenz Brun | d141d18 | 2023-10-02 15:07:01 +0200 | [diff] [blame] | 18 | # This defaults to a non-empty value, which triggers an error that not all |
| 19 | # tonic flags are set. We do not want tonic, so explicitly set this to |
| 20 | # an empty string. |
| 21 | tonic_plugin_flag = "", |
| 22 | ) |
| 23 | |
| 24 | toolchain( |
| 25 | name = "prost_efi_toolchain", |
| 26 | toolchain = "prost_efi_toolchain_impl", |
| 27 | toolchain_type = "@rules_rust//proto/prost:toolchain_type", |
| 28 | ) |