Migrate to protobuf-codegen-pure 2.14
This commit is contained in:
parent
4edff96321
commit
2892cf94c1
|
@ -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"
|
||||
|
|
|
@ -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");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue