aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYecheng Zhao <zyecheng@google.com>2023-10-10 20:11:30 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2023-10-10 20:11:30 +0000
commit6a57b75ac84dbeb3f69f982b794f95fac9f0e673 (patch)
tree5c27db1e046ee724171ce26a3c91ee2806ba84c6
parent118add91d8bd0a23f2422308d97b91477088999e (diff)
parentec6176dc3b7bb8c5c755433e04aca60bc0994643 (diff)
downloadquote-6a57b75ac84dbeb3f69f982b794f95fac9f0e673.tar.gz
Add BUILD file for crate quote kleaf build am: bbad5e4de6 am: 2cc133952f am: 856c9f0bde am: ec6176dc3b
Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/quote/+/2779520 Change-Id: I523b8b5e3305f786a2163b5b7da8f07728753d98 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-rw-r--r--BUILD45
1 files changed, 45 insertions, 0 deletions
diff --git a/BUILD b/BUILD
new file mode 100644
index 0000000..d02d8cb
--- /dev/null
+++ b/BUILD
@@ -0,0 +1,45 @@
+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 = "quote",
+ srcs = glob(["**/*.rs"]),
+ crate_features = [
+ "default",
+ "proc-macro",
+ ],
+ edition = "2018",
+ deps = [
+ # This should map to repo checked out from Android third party project
+ # "platform/external/rust/crates/proc-macro2".
+ "@proc-macro2",
+ ],
+)