diff options
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2023-10-16 22:15:21 +0000 |
---|---|---|
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2023-10-16 22:15:21 +0000 |
commit | e687648a3c6db8b4f182dfb88ea4be28efc2460d (patch) | |
tree | 911a0e79c7d16c43e575ba5b166a8027b9b3a8a8 | |
parent | 59638960bb4e396883ddbd06de512c59b700bba0 (diff) | |
parent | da9ba1e63906c5d3bb68164f09bc09c951f01717 (diff) | |
download | syn-e687648a3c6db8b4f182dfb88ea4be28efc2460d.tar.gz |
Snap for 10957805 from da9ba1e63906c5d3bb68164f09bc09c951f01717 to emu-34-release
Change-Id: Ib020ff116b85384c98aa16d5af5af4976c486f0f
-rw-r--r-- | BUILD | 59 |
1 files changed, 59 insertions, 0 deletions
@@ -0,0 +1,59 @@ +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 = "syn", + srcs = glob(["**/*.rs"]), + crate_features = [ + "clone-impls", + "default", + "derive", + "extra-traits", + "full", + "parsing", + "printing", + "proc-macro", + "quote", + "visit", + "visit-mut", + ], + edition = "2021", + deps = [ + # This should map to repo checked out from Android third party project + # "platform/external/rust/crates/proc-macro2". Similar for the rest of the dependencies + # below. + "@proc-macro2", + # Map to project repo "platform/external/rust/crates/quote". + "@quote", + # Map to project repo "platform/external/rust/crates/unicode-ident". + "@unicode-ident", + ], +) |