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