aboutsummaryrefslogtreecommitdiff
path: root/tools/rust_analyzer/3rdparty/crates/BUILD.serde-1.0.171.bazel
diff options
context:
space:
mode:
Diffstat (limited to 'tools/rust_analyzer/3rdparty/crates/BUILD.serde-1.0.171.bazel')
-rw-r--r--tools/rust_analyzer/3rdparty/crates/BUILD.serde-1.0.171.bazel16
1 files changed, 12 insertions, 4 deletions
diff --git a/tools/rust_analyzer/3rdparty/crates/BUILD.serde-1.0.171.bazel b/tools/rust_analyzer/3rdparty/crates/BUILD.serde-1.0.171.bazel
index 2f44c3b5..34fe5ff6 100644
--- a/tools/rust_analyzer/3rdparty/crates/BUILD.serde-1.0.171.bazel
+++ b/tools/rust_analyzer/3rdparty/crates/BUILD.serde-1.0.171.bazel
@@ -13,9 +13,13 @@ package(default_visibility = ["//visibility:public"])
rust_library(
name = "serde",
- srcs = glob(["**/*.rs"]),
+ srcs = glob(
+ include = ["**/*.rs"],
+ allow_empty = False,
+ ),
compile_data = glob(
include = ["**"],
+ allow_empty = True,
exclude = [
"**/* *",
".tmp_git_root/**/*",
@@ -72,8 +76,11 @@ rust_library(
)
cargo_build_script(
- name = "serde_build_script",
- srcs = glob(["**/*.rs"]),
+ name = "serde_bs",
+ srcs = glob(
+ include = ["**/*.rs"],
+ allow_empty = False,
+ ),
crate_features = [
"default",
"derive",
@@ -84,6 +91,7 @@ cargo_build_script(
crate_root = "build.rs",
data = glob(
include = ["**"],
+ allow_empty = True,
exclude = [
"**/* *",
".tmp_git_root/**/*",
@@ -110,6 +118,6 @@ cargo_build_script(
alias(
name = "build_script_build",
- actual = ":serde_build_script",
+ actual = ":serde_bs",
tags = ["manual"],
)