Skip to content

Commit 716d062

Browse files
Adam Cozzettecopybara-github
authored andcommitted
Create //rust:release alias for building release crates
This follows the convention we use for other languages. This CL also renames release.sh to publish_release.sh to avoid confusion. PiperOrigin-RevId: 733335784
1 parent 7a4ffa9 commit 716d062

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

rust/BUILD

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,3 +290,8 @@ pkg_filegroup(
290290
prefix = "libupb",
291291
visibility = ["//rust/release_crates:__subpackages__"],
292292
)
293+
294+
alias(
295+
name = "release",
296+
actual = "//rust/release_crates:crates",
297+
)

rust/release_crates/BUILD

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ filegroup(
99
"//rust/release_crates/protobuf_macros:protobuf_macros_crate",
1010
"//rust/release_crates/protobuf_well_known_types:crate",
1111
],
12+
visibility = ["//rust:__pkg__"],
1213
)
1314

1415
# Run the cargo test with only a bundled linux-x86_64 protoc.
@@ -24,8 +25,8 @@ sh_binary(
2425
)
2526

2627
sh_binary(
27-
name = "release",
28-
srcs = ["release.sh"],
28+
name = "publish_release",
29+
srcs = ["publish_release.sh"],
2930
data = [
3031
":crates",
3132
"//:protoc",

0 commit comments

Comments
 (0)