diff --git a/zcash_client_backend/Cargo.toml b/zcash_client_backend/Cargo.toml index 562d1a50e..a0bebde72 100644 --- a/zcash_client_backend/Cargo.toml +++ b/zcash_client_backend/Cargo.toml @@ -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" diff --git a/zcash_client_backend/build.rs b/zcash_client_backend/build.rs index 41e021444..d1014dbed 100644 --- a/zcash_client_backend/build.rs +++ b/zcash_client_backend/build.rs @@ -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"); }