diff options
author | Yecheng Zhao <zyecheng@google.com> | 2023-10-10 19:39:02 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2023-10-10 19:39:02 +0000 |
commit | 0c1cbe655952ae854000be077a9b3c6b36fa98e8 (patch) | |
tree | 8cccda6f26f513ba45203e7d1937521771f31dbd | |
parent | 9030bd9cc3ca0601e8b0ab3398e06026f2929ef4 (diff) | |
parent | 1d3fc6482b43ee453fc036e410fcc60db3436696 (diff) | |
download | crc32fast-0c1cbe655952ae854000be077a9b3c6b36fa98e8.tar.gz |
Add BUILD file for crc32fast kleaf build am: 591d7f67ab am: 75df9aedc7 am: 1d3fc6482b
Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/crc32fast/+/2779524
Change-Id: I6c057934f41843180edb005a6f9d93cc7b8bc25b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-rw-r--r-- | BUILD | 41 |
1 files changed, 41 insertions, 0 deletions
@@ -0,0 +1,41 @@ +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 = "crc32fast", + srcs = glob(["**/*.rs"]), + edition = "2015", + deps = [ + # This should map to repo checked out from Android third party project + # "platform/external/rust/crates/cfg-if". + "@cfg-if" + ], +) |