diff options
Diffstat (limited to 'crate_universe/3rdparty/crates/BUILD.rustix-0.37.23.bazel')
-rw-r--r-- | crate_universe/3rdparty/crates/BUILD.rustix-0.37.23.bazel | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/crate_universe/3rdparty/crates/BUILD.rustix-0.37.23.bazel b/crate_universe/3rdparty/crates/BUILD.rustix-0.37.23.bazel index 046f85fc..9fe7b562 100644 --- a/crate_universe/3rdparty/crates/BUILD.rustix-0.37.23.bazel +++ b/crate_universe/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": { "@cui__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")))))))) @@ -100,6 +103,7 @@ rust_library( }), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", ".tmp_git_root/**/*", @@ -319,8 +323,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", @@ -333,6 +340,7 @@ cargo_build_script( crate_root = "build.rs", data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", ".tmp_git_root/**/*", @@ -359,6 +367,6 @@ cargo_build_script( alias( name = "build_script_build", - actual = ":rustix_build_script", + actual = ":rustix_bs", tags = ["manual"], ) |