aboutsummaryrefslogtreecommitdiff
path: root/proto/protobuf/3rdparty/crates/BUILD.protobuf-2.8.2.bazel
diff options
context:
space:
mode:
Diffstat (limited to 'proto/protobuf/3rdparty/crates/BUILD.protobuf-2.8.2.bazel')
-rw-r--r--proto/protobuf/3rdparty/crates/BUILD.protobuf-2.8.2.bazel16
1 files changed, 12 insertions, 4 deletions
diff --git a/proto/protobuf/3rdparty/crates/BUILD.protobuf-2.8.2.bazel b/proto/protobuf/3rdparty/crates/BUILD.protobuf-2.8.2.bazel
index 2b2ec9bb..e0dc5d27 100644
--- a/proto/protobuf/3rdparty/crates/BUILD.protobuf-2.8.2.bazel
+++ b/proto/protobuf/3rdparty/crates/BUILD.protobuf-2.8.2.bazel
@@ -13,9 +13,13 @@ package(default_visibility = ["//visibility:public"])
rust_library(
name = "protobuf",
- srcs = glob(["**/*.rs"]),
+ srcs = glob(
+ include = ["**/*.rs"],
+ allow_empty = False,
+ ),
compile_data = glob(
include = ["**"],
+ allow_empty = True,
exclude = [
"**/* *",
".tmp_git_root/**/*",
@@ -86,8 +90,11 @@ rust_library(
)
cargo_build_script(
- name = "protobuf_build_script",
- srcs = glob(["**/*.rs"]),
+ name = "protobuf_bs",
+ srcs = glob(
+ include = ["**/*.rs"],
+ allow_empty = False,
+ ),
crate_features = [
"bytes",
"with-bytes",
@@ -96,6 +103,7 @@ cargo_build_script(
crate_root = "build.rs",
data = glob(
include = ["**"],
+ allow_empty = True,
exclude = [
"**/* *",
".tmp_git_root/**/*",
@@ -122,6 +130,6 @@ cargo_build_script(
alias(
name = "build_script_build",
- actual = ":protobuf_build_script",
+ actual = ":protobuf_bs",
tags = ["manual"],
)