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
This commit is contained in:
Adam Cozzette 2025-03-04 08:17:11 -08:00 committed by Copybara-Service
parent 7a4ffa9a29
commit 716d062d4c
3 changed files with 8 additions and 2 deletions

View file

@ -290,3 +290,8 @@ pkg_filegroup(
prefix = "libupb",
visibility = ["//rust/release_crates:__subpackages__"],
)
alias(
name = "release",
actual = "//rust/release_crates:crates",
)

View file

@ -9,6 +9,7 @@ filegroup(
"//rust/release_crates/protobuf_macros:protobuf_macros_crate",
"//rust/release_crates/protobuf_well_known_types:crate",
],
visibility = ["//rust:__pkg__"],
)
# Run the cargo test with only a bundled linux-x86_64 protoc.
@ -24,8 +25,8 @@ sh_binary(
)
sh_binary(
name = "release",
srcs = ["release.sh"],
name = "publish_release",
srcs = ["publish_release.sh"],
data = [
":crates",
"//:protoc",