PiperOrigin-RevId: 698432644pull/19299/head
parent
3781f45f39
commit
03d24e3805
5 changed files with 42 additions and 7 deletions
@ -1,5 +1,17 @@ |
||||
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 = glob(["**/*"]), |
||||
srcs = [ |
||||
"build.rs", |
||||
":gen_cargo_toml", |
||||
], |
||||
visibility = ["//rust:__subpackages__"], |
||||
) |
||||
|
@ -1,5 +1,16 @@ |
||||
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 = glob(["**/*"]), |
||||
srcs = [ |
||||
":gen_cargo_toml", |
||||
] + glob(["src/**/*"]), |
||||
visibility = ["//rust:__subpackages__"], |
||||
) |
||||
|
@ -1,8 +1,8 @@ |
||||
[package] |
||||
edition = "2021" |
||||
edition = "2021" # The Rust edition (not to be confused with Protobuf Edition). |
||||
name = "protobuf-codegen" |
||||
readme = "README.md" |
||||
version = "4.27.3-beta.0" |
||||
version = "{VERSION}" |
||||
description = "Code generator for Rust Protocol Buffers bindings" |
||||
license = "BSD-3-Clause" |
||||
rust-version = "1.74" |
Loading…
Reference in new issue