Skip to content

Commit

Permalink
Add patch file for rust visibility
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangskz committed Jul 16, 2024
1 parent 234900d commit 8f0df53
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
From 956ce0f3fdbcd15e2eb15929512617750d0162a9 Mon Sep 17 00:00:00 2001
From: Sandy Zhang <[email protected]>
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

4 changes: 4 additions & 0 deletions modules/protobuf/28.0-rc1/source.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
{
"integrity": "sha256-BUcTaFl2Zab91jgKuYvdQeGfB3fE9jXznbTuGlYVnW8=",
"patch_strip": 1,
"patches": {
"0001-Add-visibility-for-rust-public-aliases-for-protobuf-.patch": "sha256-XxVhWA2duVWS+IAn0CT1oytRDn4r4u0CSHlyGLPFg7s="
},
"strip_prefix": "protobuf-28.0-rc1",
"url": "https://github.com/protocolbuffers/protobuf/releases/download/v28.0-rc1/protobuf-28.0-rc1.zip"
}

0 comments on commit 8f0df53

Please sign in to comment.