@@ -11,17 +11,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library")
1111
1212package(default_visibility = ["//visibility:public"])
1313
14- # licenses([
15- # "TODO", # MIT OR Apache-2.0
16- # ])
17-
1814rust_library(
1915 name = "ahash",
20- srcs = glob(["**/*.rs"]),
16+ srcs = glob(
17+ include = ["**/*.rs"],
18+ allow_empty = False,
19+ ),
2120 compile_data = glob(
2221 include = ["**"],
22+ allow_empty = True,
2323 exclude = [
2424 "**/* *",
25+ ".tmp_git_root/**/*",
2526 "BUILD",
2627 "BUILD.bazel",
2728 "WORKSPACE",
@@ -30,7 +31,9 @@ rust_library(
3031 ),
3132 crate_root = "src/lib.rs",
3233 edition = "2018",
33- rustc_flags = ["--cap-lints=allow"],
34+ rustc_flags = [
35+ "--cap-lints=allow",
36+ ],
3437 tags = [
3538 "cargo-bazel",
3639 "crate-name=ahash",
@@ -65,6 +68,12 @@ rust_library(
6568 "@rules_rust//rust/platform:aarch64-unknown-linux-gnu": [
6669 "@cu__once_cell-1.19.0//:once_cell", # cfg(not(all(target_arch = "arm", target_os = "none")))
6770 ],
71+ "@rules_rust//rust/platform:aarch64-unknown-nixos-gnu": [
72+ "@cu__once_cell-1.19.0//:once_cell", # cfg(not(all(target_arch = "arm", target_os = "none")))
73+ ],
74+ "@rules_rust//rust/platform:aarch64-unknown-nto-qnx710": [
75+ "@cu__once_cell-1.19.0//:once_cell", # cfg(not(all(target_arch = "arm", target_os = "none")))
76+ ],
6877 "@rules_rust//rust/platform:arm-unknown-linux-gnueabi": [
6978 "@cu__once_cell-1.19.0//:once_cell", # cfg(not(all(target_arch = "arm", target_os = "none")))
7079 ],
@@ -101,12 +110,6 @@ rust_library(
101110 "@rules_rust//rust/platform:s390x-unknown-linux-gnu": [
102111 "@cu__once_cell-1.19.0//:once_cell", # cfg(not(all(target_arch = "arm", target_os = "none")))
103112 ],
104- "@rules_rust//rust/platform:thumbv7em-none-eabi": [
105- "@cu__once_cell-1.19.0//:once_cell", # cfg(not(all(target_arch = "arm", target_os = "none")))
106- ],
107- "@rules_rust//rust/platform:thumbv8m.main-none-eabi": [
108- "@cu__once_cell-1.19.0//:once_cell", # cfg(not(all(target_arch = "arm", target_os = "none")))
109- ],
110113 "@rules_rust//rust/platform:wasm32-unknown-unknown": [
111114 "@cu__once_cell-1.19.0//:once_cell", # cfg(not(all(target_arch = "arm", target_os = "none")))
112115 ],
@@ -134,6 +137,9 @@ rust_library(
134137 "@rules_rust//rust/platform:x86_64-unknown-linux-gnu": [
135138 "@cu__once_cell-1.19.0//:once_cell", # cfg(not(all(target_arch = "arm", target_os = "none")))
136139 ],
140+ "@rules_rust//rust/platform:x86_64-unknown-nixos-gnu": [
141+ "@cu__once_cell-1.19.0//:once_cell", # cfg(not(all(target_arch = "arm", target_os = "none")))
142+ ],
137143 "@rules_rust//rust/platform:x86_64-unknown-none": [
138144 "@cu__once_cell-1.19.0//:once_cell", # cfg(not(all(target_arch = "arm", target_os = "none")))
139145 ],
@@ -142,14 +148,19 @@ rust_library(
142148)
143149
144150cargo_build_script(
145- name = "ahash_build_script",
146- srcs = glob(["**/*.rs"]),
151+ name = "ahash_bs",
152+ srcs = glob(
153+ include = ["**/*.rs"],
154+ allow_empty = False,
155+ ),
147156 crate_name = "build_script_build",
148157 crate_root = "build.rs",
149158 data = glob(
150159 include = ["**"],
160+ allow_empty = True,
151161 exclude = [
152162 "**/* *",
163+ ".tmp_git_root/**/*",
153164 "BUILD",
154165 "BUILD.bazel",
155166 "WORKSPACE",
@@ -176,6 +187,6 @@ cargo_build_script(
176187
177188alias(
178189 name = "build_script_build",
179- actual = "ahash_build_script ",
190+ actual = ":ahash_bs ",
180191 tags = ["manual"],
181192)
0 commit comments