diff options
author | Yecheng Zhao <zyecheng@google.com> | 2023-10-10 20:11:10 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2023-10-10 20:11:10 +0000 |
commit | 53e75de6402ac6247dc6eb8fda863e3e71d32163 (patch) | |
tree | 67879ce0ffa295f39cef584ef450e6f20335bc49 | |
parent | c2b2bf5968e87720a770c9b5205da12b61b80a8b (diff) | |
parent | f624a34409e68497363595a389819c6443fd465d (diff) | |
download | cfg-if-53e75de6402ac6247dc6eb8fda863e3e71d32163.tar.gz |
Add BUILD file for cfg-if kleaf build am: c118b3d2e7 am: 03aec37217 am: b05283bae0 am: f624a34409
Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/cfg-if/+/2779522
Change-Id: I66e593452029ba7a8e4bbcc2542200f6752135bd
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-rw-r--r-- | BUILD | 36 |
1 files changed, 36 insertions, 0 deletions
@@ -0,0 +1,36 @@ +load("@rules_license//rules:license.bzl", "license") +load("@rules_license//rules:license_kind.bzl", "license_kind") +load("@rules_rust//rust:defs.bzl", "rust_library") + +package( + default_applicable_licenses = [":license"], + default_visibility = ["//visibility:public"], +) + +license( + name = "license", + license_kinds = [ + ":SPDX-license-identifier-Apache-2.0", + ":SPDX-license-identifier-MIT", + ], + license_text = "LICENSE-APACHE", + visibility = [":__subpackages__"], +) + +license_kind( + name = "SPDX-license-identifier-Apache-2.0", + conditions = ["notice"], + url = "https://spdx.org/licenses/Apache-2.0.html", +) + +license_kind( + name = "SPDX-license-identifier-MIT", + conditions = ["notice"], + url = "", +) + +rust_library( + name = "cfg-if", + srcs = glob(["**/*.rs"]), + edition = "2018", +) |