diff options
author | Yecheng Zhao <zyecheng@google.com> | 2023-10-09 23:20:50 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2023-10-09 23:20:50 +0000 |
commit | c035ff7e3baf9ea44a53be2834c52ca047f565d2 (patch) | |
tree | 9bf6f34e621b2040d7d567b69c01358eb314ef9e | |
parent | f11a2c385707f6c9e59d59b32b15783b2d300636 (diff) | |
parent | 23d8d5d36c2df1d14661ea5038aaa201b3e63374 (diff) | |
download | byteorder-c035ff7e3baf9ea44a53be2834c52ca047f565d2.tar.gz |
Add BUILD file for kleaf bazel build am: 360d11b97f am: 23d8d5d36c
Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/byteorder/+/2778428
Change-Id: I1163b9718dcde78099804bf40427dc61112d1990
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-rw-r--r-- | BUILD | 37 |
1 files changed, 37 insertions, 0 deletions
@@ -0,0 +1,37 @@ +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 = "byteorder", + srcs = glob(["**/*.rs"]), + edition = "2021", + visibility = ["//visibility:public"], +) |