Protocol Buffers - Google's data interchange format (grpc依赖) https://developers.google.com/protocol-buffers/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
407 B

load("//:protobuf_version.bzl", "PROTOBUF_RUST_VERSION")
genrule(
name = "gen_cargo_toml",
srcs = ["Cargo-template.toml"],
outs = ["Cargo.toml"],
cmd = "cat $(SRCS) | sed -e 's/{{VERSION}}/{0}-beta/g' > $(OUTS)".format(PROTOBUF_RUST_VERSION),
)
filegroup(
name = "srcs",
srcs = [
"build.rs",
":gen_cargo_toml",
],
visibility = ["//rust:__subpackages__"],
)