diff options
author | Yecheng Zhao <zyecheng@google.com> | 2023-10-10 17:50:27 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2023-10-10 17:50:27 +0000 |
commit | 2cc133952fb6c674e10e1e6308615de549e16dae (patch) | |
tree | 5c27db1e046ee724171ce26a3c91ee2806ba84c6 | |
parent | d076a8b19b5f612c30bb7597f1b4b089f9e38929 (diff) | |
parent | bbad5e4de6fe80994b4a404cd3cc0ab45a04de61 (diff) | |
download | quote-2cc133952fb6c674e10e1e6308615de549e16dae.tar.gz |
Add BUILD file for crate quote kleaf build am: bbad5e4de6
Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/quote/+/2779520
Change-Id: I78bc65bfec41ad56fbce3eab5c73c8ae45219484
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-rw-r--r-- | BUILD | 45 |
1 files changed, 45 insertions, 0 deletions
@@ -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", + ], +) |