blob: 7189aff041676bd16421d014e6a9a66c8d1ec2fd [file] [edit]
# Protobuf Rust crate packaging for release.
filegroup(
name = "crates",
srcs = [
"//rust/release_crates/protobuf:protobuf_crate",
"//rust/release_crates/protobuf_codegen:protobuf_codegen_crate",
"//rust/release_crates/protobuf_example:protobuf_example_crate",
"//rust/release_crates/protobuf_macros:protobuf_macros_crate",
"//rust/release_crates/protobuf_well_known_types:protobuf_well_known_types_crate",
],
visibility = ["//rust:__pkg__"],
)
# Run the cargo test with only a bundled linux-x86_64 protoc.
sh_binary(
name = "cargo_test",
srcs = ["cargo_test.sh"],
data = [
":crates",
"//:protoc",
],
tags = ["manual"],
deps = ["@bazel_tools//tools/bash/runfiles"],
)
sh_binary(
name = "publish_release",
srcs = ["publish_release.sh"],
data = [
":crates",
"//:protoc",
],
tags = ["manual"],
deps = ["@bazel_tools//tools/bash/runfiles"],
)