xref: /aosp_15_r20/external/bazelbuild-rules_rust/cargo/bootstrap/BUILD.bazel (revision d4726bddaa87cc4778e7472feed243fa4b6c267f)
1load("//rust:defs.bzl", "rust_binary")
2
3exports_files(
4    [
5        "bootstrap_installer.rs",
6    ],
7    visibility = ["//visibility:public"],
8)
9
10# This target is only used to confirm the source code is buildable
11# in a `cargo_bootstrap_repository` rule.
12rust_binary(
13    name = "bootstrap_installer_bin",
14    srcs = [
15        "bootstrap_installer.rs",
16    ],
17    edition = "2018",
18    rustc_env = {
19        "RULES_RUST_CARGO_BOOTSTRAP_BINARY": "$(rootpath bootstrap_installer.rs)",
20    },
21)
22