@@ -42,6 +42,8 @@ cargo_build_script(
4242 srcs = glob(["**/*.rs"]),
4343 build_script_env = {
4444 },
45+ crate_features = [
46+ ],
4547 crate_root = "build.rs",
4648 data = glob(["**"]),
4749 edition = "2018",
@@ -57,6 +59,7 @@ cargo_build_script(
5759 deps = [
5860 "@wasmtime__version_check__0_9_4//:version_check",
5961 ] + selects.with_or({
62+ # cfg(any(target_os = "linux", target_os = "android", target_os = "windows", target_os = "macos", target_os = "ios", target_os = "freebsd", target_os = "openbsd", target_os = "netbsd", target_os = "dragonfly", target_os = "solaris", target_os = "illumos", target_os = "fuchsia", target_os = "redox", target_os = "cloudabi", target_os = "haiku", target_os = "vxworks", target_os = "emscripten", target_os = "wasi"))
6063 (
6164 "@rules_rust//rust/platform:i686-apple-darwin",
6265 "@rules_rust//rust/platform:i686-pc-windows-msvc",
@@ -66,11 +69,9 @@ cargo_build_script(
6669 "@rules_rust//rust/platform:x86_64-unknown-linux-gnu",
6770 "@rules_rust//rust/platform:aarch64-apple-darwin",
6871 "@rules_rust//rust/platform:aarch64-apple-ios",
69- "@rules_rust//rust/platform:aarch64-apple-ios-sim",
7072 "@rules_rust//rust/platform:aarch64-linux-android",
7173 "@rules_rust//rust/platform:aarch64-unknown-linux-gnu",
7274 "@rules_rust//rust/platform:arm-unknown-linux-gnueabi",
73- "@rules_rust//rust/platform:armv7-linux-androideabi",
7475 "@rules_rust//rust/platform:i686-linux-android",
7576 "@rules_rust//rust/platform:i686-unknown-freebsd",
7677 "@rules_rust//rust/platform:powerpc-unknown-linux-gnu",
@@ -83,6 +84,7 @@ cargo_build_script(
8384 ],
8485 "//conditions:default": [],
8586 }) + selects.with_or({
87+ # cfg(not(all(target_arch = "arm", target_os = "none")))
8688 (
8789 "@rules_rust//rust/platform:i686-apple-darwin",
8890 "@rules_rust//rust/platform:i686-pc-windows-msvc",
@@ -92,11 +94,9 @@ cargo_build_script(
9294 "@rules_rust//rust/platform:x86_64-unknown-linux-gnu",
9395 "@rules_rust//rust/platform:aarch64-apple-darwin",
9496 "@rules_rust//rust/platform:aarch64-apple-ios",
95- "@rules_rust//rust/platform:aarch64-apple-ios-sim",
9697 "@rules_rust//rust/platform:aarch64-linux-android",
9798 "@rules_rust//rust/platform:aarch64-unknown-linux-gnu",
9899 "@rules_rust//rust/platform:arm-unknown-linux-gnueabi",
99- "@rules_rust//rust/platform:armv7-linux-androideabi",
100100 "@rules_rust//rust/platform:i686-linux-android",
101101 "@rules_rust//rust/platform:i686-unknown-freebsd",
102102 "@rules_rust//rust/platform:powerpc-unknown-linux-gnu",
@@ -121,6 +121,8 @@ rust_library(
121121 srcs = glob(["**/*.rs"]),
122122 aliases = {
123123 },
124+ crate_features = [
125+ ],
124126 crate_root = "src/lib.rs",
125127 data = [],
126128 edition = "2018",
@@ -137,6 +139,7 @@ rust_library(
137139 deps = [
138140 ":ahash_build_script",
139141 ] + selects.with_or({
142+ # cfg(any(target_os = "linux", target_os = "android", target_os = "windows", target_os = "macos", target_os = "ios", target_os = "freebsd", target_os = "openbsd", target_os = "netbsd", target_os = "dragonfly", target_os = "solaris", target_os = "illumos", target_os = "fuchsia", target_os = "redox", target_os = "cloudabi", target_os = "haiku", target_os = "vxworks", target_os = "emscripten", target_os = "wasi"))
140143 (
141144 "@rules_rust//rust/platform:i686-apple-darwin",
142145 "@rules_rust//rust/platform:i686-pc-windows-msvc",
@@ -146,11 +149,9 @@ rust_library(
146149 "@rules_rust//rust/platform:x86_64-unknown-linux-gnu",
147150 "@rules_rust//rust/platform:aarch64-apple-darwin",
148151 "@rules_rust//rust/platform:aarch64-apple-ios",
149- "@rules_rust//rust/platform:aarch64-apple-ios-sim",
150152 "@rules_rust//rust/platform:aarch64-linux-android",
151153 "@rules_rust//rust/platform:aarch64-unknown-linux-gnu",
152154 "@rules_rust//rust/platform:arm-unknown-linux-gnueabi",
153- "@rules_rust//rust/platform:armv7-linux-androideabi",
154155 "@rules_rust//rust/platform:i686-linux-android",
155156 "@rules_rust//rust/platform:i686-unknown-freebsd",
156157 "@rules_rust//rust/platform:powerpc-unknown-linux-gnu",
@@ -164,6 +165,7 @@ rust_library(
164165 ],
165166 "//conditions:default": [],
166167 }) + selects.with_or({
168+ # cfg(not(all(target_arch = "arm", target_os = "none")))
167169 (
168170 "@rules_rust//rust/platform:i686-apple-darwin",
169171 "@rules_rust//rust/platform:i686-pc-windows-msvc",
@@ -173,11 +175,9 @@ rust_library(
173175 "@rules_rust//rust/platform:x86_64-unknown-linux-gnu",
174176 "@rules_rust//rust/platform:aarch64-apple-darwin",
175177 "@rules_rust//rust/platform:aarch64-apple-ios",
176- "@rules_rust//rust/platform:aarch64-apple-ios-sim",
177178 "@rules_rust//rust/platform:aarch64-linux-android",
178179 "@rules_rust//rust/platform:aarch64-unknown-linux-gnu",
179180 "@rules_rust//rust/platform:arm-unknown-linux-gnueabi",
180- "@rules_rust//rust/platform:armv7-linux-androideabi",
181181 "@rules_rust//rust/platform:i686-linux-android",
182182 "@rules_rust//rust/platform:i686-unknown-freebsd",
183183 "@rules_rust//rust/platform:powerpc-unknown-linux-gnu",
0 commit comments