Migrate to protobuf-codegen-pure 2.14

This commit is contained in:
Jack Grigg 2020-05-22 18:55:46 +12:00
parent 4edff96321
commit 2892cf94c1
2 changed files with 7 additions and 8 deletions

View File

@ -21,7 +21,7 @@ subtle = "2"
zcash_primitives = { version = "0.2", path = "../zcash_primitives" }
[build-dependencies]
protobuf-codegen-pure = "2"
protobuf-codegen-pure = "2.14"
[dev-dependencies]
rand_core = "0.5"

View File

@ -1,11 +1,10 @@
use protobuf_codegen_pure;
fn main() {
protobuf_codegen_pure::run(protobuf_codegen_pure::Args {
out_dir: "src/proto",
input: &["proto/compact_formats.proto"],
includes: &["proto"],
customize: Default::default(),
})
.expect("protoc");
protobuf_codegen_pure::Codegen::new()
.out_dir("src/proto")
.inputs(&["proto/compact_formats.proto"])
.includes(&["proto"])
.run()
.expect("Protobuf codegen failed");
}