aboutsummaryrefslogtreecommitdiff
path: root/tools/rust_analyzer/3rdparty/crates/BUILD.rustix-0.37.23.bazel
diff options
context:
space:
mode:
Diffstat (limited to 'tools/rust_analyzer/3rdparty/crates/BUILD.rustix-0.37.23.bazel')
-rw-r--r--tools/rust_analyzer/3rdparty/crates/BUILD.rustix-0.37.23.bazel16
1 files changed, 12 insertions, 4 deletions
diff --git a/tools/rust_analyzer/3rdparty/crates/BUILD.rustix-0.37.23.bazel b/tools/rust_analyzer/3rdparty/crates/BUILD.rustix-0.37.23.bazel
index 89aeeaa7..f241b2ce 100644
--- a/tools/rust_analyzer/3rdparty/crates/BUILD.rustix-0.37.23.bazel
+++ b/tools/rust_analyzer/3rdparty/crates/BUILD.rustix-0.37.23.bazel
@@ -13,7 +13,10 @@ package(default_visibility = ["//visibility:public"])
rust_library(
name = "rustix",
- srcs = glob(["**/*.rs"]),
+ srcs = glob(
+ include = ["**/*.rs"],
+ allow_empty = False,
+ ),
aliases = select({
"@rules_rust//rust/platform:aarch64-apple-darwin": {
"@rrra__errno-0.3.1//:errno": "libc_errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64"))))))))
@@ -52,6 +55,7 @@ rust_library(
}),
compile_data = glob(
include = ["**"],
+ allow_empty = True,
exclude = [
"**/* *",
".tmp_git_root/**/*",
@@ -178,8 +182,11 @@ rust_library(
)
cargo_build_script(
- name = "rustix_build_script",
- srcs = glob(["**/*.rs"]),
+ name = "rustix_bs",
+ srcs = glob(
+ include = ["**/*.rs"],
+ allow_empty = False,
+ ),
crate_features = [
"default",
"io-lifetimes",
@@ -192,6 +199,7 @@ cargo_build_script(
crate_root = "build.rs",
data = glob(
include = ["**"],
+ allow_empty = True,
exclude = [
"**/* *",
".tmp_git_root/**/*",
@@ -218,6 +226,6 @@ cargo_build_script(
alias(
name = "build_script_build",
- actual = ":rustix_build_script",
+ actual = ":rustix_bs",
tags = ["manual"],
)