| Tim Windelschmidt | e5e90a8 | 2024-07-17 23:46:22 +0200 | [diff] [blame^] | 1 | rust = use_extension("@rules_rust//rust:extensions.bzl", "rust") |
| 2 | rust.toolchain( |
| 3 | edition = "2021", |
| 4 | extra_target_triples = [ |
| 5 | "x86_64-unknown-uefi", |
| 6 | ], |
| 7 | versions = ["1.71.0"], |
| 8 | ) |
| 9 | use_repo(rust, "rust_toolchains") |
| 10 | |
| 11 | crate = use_extension("@rules_rust//crate_universe:extension.bzl", "crate") |
| 12 | crate.from_cargo( |
| 13 | name = "crate_index", |
| 14 | cargo_lockfile = "//third_party/rust:Cargo.lock", |
| 15 | generate_binaries = True, |
| 16 | manifests = ["//third_party/rust:Cargo.toml"], |
| 17 | ) |
| 18 | crate.from_cargo( |
| 19 | name = "crate_index_efi", |
| 20 | cargo_lockfile = "//third_party/rust_efi:Cargo.lock", |
| 21 | generate_binaries = True, |
| 22 | manifests = ["//third_party/rust_efi:Cargo.toml"], |
| 23 | supported_platform_triples = [ |
| 24 | "x86_64-unknown-linux-gnu", |
| 25 | "x86_64-unknown-uefi", |
| 26 | ], |
| 27 | ) |
| 28 | use_repo(crate, "crate_index") |
| 29 | use_repo(crate, "crate_index_efi") |