@@ -11,17 +11,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library")
11
11
12
12
package(default_visibility = ["//visibility:public"])
13
13
14
- # licenses([
15
- # "TODO", # MIT OR Apache-2.0
16
- # ])
17
-
18
14
rust_library(
19
15
name = "ahash",
20
- srcs = glob(["**/*.rs"]),
16
+ srcs = glob(
17
+ include = ["**/*.rs"],
18
+ allow_empty = False,
19
+ ),
21
20
compile_data = glob(
22
21
include = ["**"],
22
+ allow_empty = True,
23
23
exclude = [
24
24
"**/* *",
25
+ ".tmp_git_root/**/*",
25
26
"BUILD",
26
27
"BUILD.bazel",
27
28
"WORKSPACE",
@@ -30,7 +31,9 @@ rust_library(
30
31
),
31
32
crate_root = "src/lib.rs",
32
33
edition = "2018",
33
- rustc_flags = ["--cap-lints=allow"],
34
+ rustc_flags = [
35
+ "--cap-lints=allow",
36
+ ],
34
37
tags = [
35
38
"cargo-bazel",
36
39
"crate-name=ahash",
@@ -65,6 +68,12 @@ rust_library(
65
68
"@rules_rust//rust/platform:aarch64-unknown-linux-gnu": [
66
69
"@cu__once_cell-1.19.0//:once_cell", # cfg(not(all(target_arch = "arm", target_os = "none")))
67
70
],
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
+ ],
68
77
"@rules_rust//rust/platform:arm-unknown-linux-gnueabi": [
69
78
"@cu__once_cell-1.19.0//:once_cell", # cfg(not(all(target_arch = "arm", target_os = "none")))
70
79
],
@@ -101,12 +110,6 @@ rust_library(
101
110
"@rules_rust//rust/platform:s390x-unknown-linux-gnu": [
102
111
"@cu__once_cell-1.19.0//:once_cell", # cfg(not(all(target_arch = "arm", target_os = "none")))
103
112
],
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
- ],
110
113
"@rules_rust//rust/platform:wasm32-unknown-unknown": [
111
114
"@cu__once_cell-1.19.0//:once_cell", # cfg(not(all(target_arch = "arm", target_os = "none")))
112
115
],
@@ -134,6 +137,9 @@ rust_library(
134
137
"@rules_rust//rust/platform:x86_64-unknown-linux-gnu": [
135
138
"@cu__once_cell-1.19.0//:once_cell", # cfg(not(all(target_arch = "arm", target_os = "none")))
136
139
],
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
+ ],
137
143
"@rules_rust//rust/platform:x86_64-unknown-none": [
138
144
"@cu__once_cell-1.19.0//:once_cell", # cfg(not(all(target_arch = "arm", target_os = "none")))
139
145
],
@@ -142,14 +148,19 @@ rust_library(
142
148
)
143
149
144
150
cargo_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
+ ),
147
156
crate_name = "build_script_build",
148
157
crate_root = "build.rs",
149
158
data = glob(
150
159
include = ["**"],
160
+ allow_empty = True,
151
161
exclude = [
152
162
"**/* *",
163
+ ".tmp_git_root/**/*",
153
164
"BUILD",
154
165
"BUILD.bazel",
155
166
"WORKSPACE",
@@ -176,6 +187,6 @@ cargo_build_script(
176
187
177
188
alias(
178
189
name = "build_script_build",
179
- actual = "ahash_build_script ",
190
+ actual = ":ahash_bs ",
180
191
tags = ["manual"],
181
192
)
0 commit comments