From 9cceb6278dc86e972fd8d7e108d2acaa0c2d9c27 Mon Sep 17 00:00:00 2001 From: Derek Benson Date: Tue, 30 Jul 2024 08:59:24 -0700 Subject: [PATCH] Fix broken github_only comment in cargo build rule PiperOrigin-RevId: 657611564 --- rust/BUILD | 92 +++++++++++++++++++++++++++--------------------------- 1 file changed, 46 insertions(+), 46 deletions(-) diff --git a/rust/BUILD b/rust/BUILD index 43b6e6a49d..31c8c800d5 100644 --- a/rust/BUILD +++ b/rust/BUILD @@ -211,55 +211,55 @@ config_setting( ) # begin:github_only -# pkg_files( -# name = "rust_protobuf_src", -# srcs = glob( -# [ -# "*", -# ], -# ), -# strip_prefix = strip_prefix.from_root("rust"), -# visibility = ["//:__pkg__"], -# ) +pkg_files( + name = "rust_protobuf_src", + srcs = glob( + [ + "*", + ], + ), + strip_prefix = strip_prefix.from_root("rust"), + visibility = ["//:__pkg__"], +) -# pkg_files( -# name = "crate_root_files", -# srcs = glob(["cargo/**/*"]), -# strip_prefix = strip_prefix.from_root("rust/cargo"), -# visibility = ["//:__pkg__"], -# ) +pkg_files( + name = "crate_root_files", + srcs = glob(["cargo/**/*"]), + strip_prefix = strip_prefix.from_root("rust/cargo"), + visibility = ["//:__pkg__"], +) -# pkg_filegroup( -# name = "rust_protobuf_src_dir", -# srcs = [ -# ":rust_protobuf_src", -# "//rust/upb:rust_protobuf_upb_src", -# ], -# prefix = "src", -# ) +pkg_filegroup( + name = "rust_protobuf_src_dir", + srcs = [ + ":rust_protobuf_src", + "//rust/upb:rust_protobuf_upb_src", + ], + prefix = "src", +) -# pkg_files( -# name = "amalgamated_upb", -# srcs = ["//upb:gen_amalgamation"], -# strip_prefix = strip_prefix.from_root(""), -# ) +pkg_files( + name = "amalgamated_upb", + srcs = ["//upb:gen_amalgamation"], + strip_prefix = strip_prefix.from_root(""), +) -# pkg_filegroup( -# name = "rust_protobuf_libupb_src", -# srcs = [ -# ":amalgamated_upb", -# "//upb/cmake:upb_cmake_dist", -# ], -# prefix = "libupb", -# ) +pkg_filegroup( + name = "rust_protobuf_libupb_src", + srcs = [ + ":amalgamated_upb", + "//upb/cmake:upb_cmake_dist", + ], + prefix = "libupb", +) -# pkg_zip( -# name = "rust_crate", -# srcs = [ -# ":crate_root_files", -# ":rust_protobuf_libupb_src", -# ":rust_protobuf_src_dir", -# "//:LICENSE", -# ], -# ) +pkg_zip( + name = "rust_crate", + srcs = [ + ":crate_root_files", + ":rust_protobuf_libupb_src", + ":rust_protobuf_src_dir", + "//:LICENSE", + ], +) # end:github_only