aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYecheng Zhao <zyecheng@google.com>2023-10-10 18:22:30 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2023-10-10 18:22:30 +0000
commit8a45aa6d38276183a4081f9a243b386aef3c2981 (patch)
tree14570b8b5c6572095ee7c058d6c06ff9a0e8ee20
parente224340e1093a38f55b7649e1248b198e6a41e68 (diff)
parente85f501056b63a6ec7f293f63656d38df6dc1087 (diff)
downloadunicode-ident-8a45aa6d38276183a4081f9a243b386aef3c2981.tar.gz
Add BUILD file for unicode-ident kleaf build am: be46efe39c am: e85f501056
Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/unicode-ident/+/2779371 Change-Id: I58b2bd221b7a82300c1c4fbe6e2647728ff8cbda Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-rw-r--r--BUILD36
1 files changed, 36 insertions, 0 deletions
diff --git a/BUILD b/BUILD
new file mode 100644
index 0000000..1a285be
--- /dev/null
+++ b/BUILD
@@ -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 = "unicode-ident",
+ srcs = glob(["**/*.rs"]),
+ edition = "2018",
+)