diff options
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2023-11-01 21:18:44 +0000 |
---|---|---|
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2023-11-01 21:18:44 +0000 |
commit | 4825857e20549330034946e3fb5af0760acccff7 (patch) | |
tree | 90ad761fa47605d38d785f536fd78c5588fdf617 | |
parent | 1b503b8ae9a64ace4ef6687830eb05a93f74984e (diff) | |
parent | a78015008cc96500b2c9246e9c53065c2ea97498 (diff) | |
download | hex-4825857e20549330034946e3fb5af0760acccff7.tar.gz |
Snap for 11037473 from a78015008cc96500b2c9246e9c53065c2ea97498 to build-tools-release
Change-Id: Ia58dd935646f46af429f3e70b227b298ebf0d602
-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 = "hex", + srcs = glob(["**/*.rs"]), + crate_features = [ + "alloc", + "default", + "std", + ], + edition = "2018", +) |