diff --git a/0001-Add-visibility-for-rust-public-aliases-for-protobuf-.patch b/0001-Add-visibility-for-rust-public-aliases-for-protobuf-.patch new file mode 100644 index 00000000000..bbe1cc0c234 --- /dev/null +++ b/0001-Add-visibility-for-rust-public-aliases-for-protobuf-.patch @@ -0,0 +1,26 @@ +From 956ce0f3fdbcd15e2eb15929512617750d0162a9 Mon Sep 17 00:00:00 2001 +From: Sandy Zhang +Date: Mon, 15 Jul 2024 09:44:52 -0700 +Subject: [PATCH] Add visibility for rust public aliases for + '@protobuf//:protobuf_rust' + +PiperOrigin-RevId: 652511009 +--- + rust/BUILD | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/rust/BUILD b/rust/BUILD +index aff4d2bec..89880004a 100644 +--- a/rust/BUILD ++++ b/rust/BUILD +@@ -6,6 +6,7 @@ load("//bazel/toolchains:proto_lang_toolchain.bzl", "proto_lang_toolchain") + + package( + default_visibility = [ ++ "//:__pkg__", # "public" targets are alias rules in //. + "//src/google/protobuf:__subpackages__", + ], + ) +-- +2.45.2.993.g49e7a77208-goog +