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

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

Loading…
Cancel
Save