diff options
author | Yecheng Zhao <zyecheng@google.com> | 2023-10-09 21:54:34 +0000 |
---|---|---|
committer | Yecheng Zhao <zyecheng@google.com> | 2023-10-09 22:11:33 +0000 |
commit | be46efe39c3a41e1441dfd6a34540dc5135585b0 (patch) | |
tree | 14570b8b5c6572095ee7c058d6c06ff9a0e8ee20 | |
parent | bac67c94ef4aa154ac0e0c039bca1fea3747320d (diff) | |
download | unicode-ident-be46efe39c3a41e1441dfd6a34540dc5135585b0.tar.gz |
Add BUILD file for unicode-ident kleaf build
Test:
touch external/rust/crates/unicode-ident/WORKSPACE && \
b build @unicode-ident \
--override_repository=unicode-ident=external/rust/crates/unicode-ident/
Bug:304282799
Change-Id: Id7fe87314f26e409e185c95c3546748526fe65cb
-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 = "unicode-ident", + srcs = glob(["**/*.rs"]), + edition = "2018", +) |