diff options
author | Yecheng Zhao <zyecheng@google.com> | 2023-10-09 23:56:43 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2023-10-09 23:56:43 +0000 |
commit | 7c513154d6a53dd3a42bc8675f167c99b2218d6f (patch) | |
tree | 9bf6f34e621b2040d7d567b69c01358eb314ef9e | |
parent | b8129db47c7d0c7748eeb3e7a22823639af26c02 (diff) | |
parent | c035ff7e3baf9ea44a53be2834c52ca047f565d2 (diff) | |
download | byteorder-7c513154d6a53dd3a42bc8675f167c99b2218d6f.tar.gz |
Add BUILD file for kleaf bazel build am: 360d11b97f am: 23d8d5d36c am: c035ff7e3b
Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/byteorder/+/2778428
Change-Id: I41af680f210b8c32a6b4e392317bd17495fdbff2
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"], +) |