aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYecheng Zhao <zyecheng@google.com>2023-10-10 17:46:50 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2023-10-10 17:46:50 +0000
commite85f501056b63a6ec7f293f63656d38df6dc1087 (patch)
tree14570b8b5c6572095ee7c058d6c06ff9a0e8ee20
parentbac67c94ef4aa154ac0e0c039bca1fea3747320d (diff)
parentbe46efe39c3a41e1441dfd6a34540dc5135585b0 (diff)
downloadunicode-ident-e85f501056b63a6ec7f293f63656d38df6dc1087.tar.gz
Add BUILD file for unicode-ident kleaf build am: be46efe39c
Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/unicode-ident/+/2779371 Change-Id: I6daf9e24f6c835e5c6ce2623a90076c24d8d402d 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",
+)