mirror of
https://github.com/protocolbuffers/protobuf
synced 2026-08-26 02:23:14 -04:00
New crates are in https://crates.io/search?q=google-protobuf PiperOrigin-RevId: 963684439
29 lines
793 B
Text
29 lines
793 B
Text
load("@rules_pkg//pkg:mappings.bzl", "pkg_filegroup", "pkg_files", "strip_prefix")
|
|
load("//rust/release_crates:substitute_rust_release_version.bzl", "substitute_rust_release_version")
|
|
|
|
pkg_filegroup(
|
|
name = "google_protobuf_codegen_crate",
|
|
srcs = [
|
|
":crate_root_files",
|
|
"//rust/release_crates:license",
|
|
],
|
|
prefix = "google_protobuf_codegen",
|
|
visibility = ["//rust:__subpackages__"],
|
|
)
|
|
|
|
pkg_files(
|
|
name = "crate_root_files",
|
|
srcs = [":srcs"],
|
|
strip_prefix = strip_prefix.from_root("rust/release_crates/google_protobuf_codegen"),
|
|
)
|
|
|
|
substitute_rust_release_version(
|
|
src = "Cargo-template.toml",
|
|
out = "Cargo.toml",
|
|
)
|
|
|
|
filegroup(
|
|
name = "srcs",
|
|
srcs = ["Cargo.toml"] + glob(["**/*"]),
|
|
visibility = ["//rust:__subpackages__"],
|
|
)
|