PiperOrigin-RevId: 697986670
pull/19317/head
Protobuf Team Bot 3 months ago committed by Copybara-Service
parent 453f39d397
commit c014e96a59
  1. 19
      rust/BUILD
  2. 14
      rust/upb/BUILD

@ -251,20 +251,14 @@ config_setting(
pkg_files(
name = "rust_protobuf_src",
srcs = glob(
[
"*",
],
),
strip_prefix = strip_prefix.from_root("rust"),
visibility = ["//:__pkg__"],
srcs = glob(["*"]),
strip_prefix = strip_prefix.from_pkg(""),
)
pkg_files(
name = "crate_root_files",
srcs = glob(["cargo/**/*"]),
strip_prefix = strip_prefix.from_root("rust/cargo"),
visibility = ["//:__pkg__"],
strip_prefix = strip_prefix.from_pkg("/cargo"),
)
pkg_filegroup(
@ -304,7 +298,7 @@ pkg_tar(
pkg_files(
name = "protobuf_codegen_files",
srcs = glob(["protobuf_codegen/src/*"]) + ["protobuf_codegen/Cargo.toml"],
strip_prefix = strip_prefix.from_root("rust/protobuf_codegen"),
strip_prefix = strip_prefix.from_pkg("/protobuf_codegen"),
)
pkg_tar(
@ -315,7 +309,6 @@ pkg_tar(
"//:LICENSE",
],
tags = ["manual"],
visibility = ["//rust:__pkg__"],
)
pkg_tar(
@ -326,13 +319,12 @@ pkg_tar(
"//:LICENSE",
],
tags = ["manual"],
visibility = ["//rust:__pkg__"],
)
pkg_files(
name = "codegen_example_files",
srcs = glob(["protobuf_codegen/example/**/*"]),
strip_prefix = strip_prefix.from_root("rust/protobuf_codegen/example"),
strip_prefix = strip_prefix.from_pkg("/protobuf_codegen/example"),
)
pkg_tar(
@ -341,7 +333,6 @@ pkg_tar(
":codegen_example_files",
"//:LICENSE",
],
visibility = ["//rust:__pkg__"],
)
# Bundle all protoc binaries for all platforms. Requires the toolchains to be installed.

@ -59,11 +59,11 @@ cc_library(
pkg_files(
name = "rust_protobuf_upb_src",
srcs = glob(
[
"*",
],
),
strip_prefix = strip_prefix.from_root("rust"),
visibility = ["//rust:__pkg__"],
srcs = glob(["*"]),
prefix = "upb",
strip_prefix = strip_prefix.from_pkg(),
visibility = [
"//rust:__subpackages__",
"//src/google/protobuf:__subpackages__",
],
)

Loading…
Cancel
Save