Skip to content

Commit 8122b16

Browse files
committed
ttrpc-codegen: fix protobuf customization unapplying
Also re-export the protobuf_codegen::Customize for user convienient. Signed-off-by: Tim Zhang <[email protected]>
1 parent 9470d13 commit 8122b16

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ttrpc-codegen/src/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
//!
2121
//!```
2222
23-
use protobuf_codegen::Customize as ProtobufCustomize;
23+
pub use protobuf_codegen::Customize as ProtobufCustomize;
2424
use std::collections::HashMap;
2525
use std::error::Error;
2626
use std::fmt;
@@ -123,6 +123,7 @@ impl Codegen {
123123
.out_dir(&self.out_dir)
124124
.inputs(&self.inputs)
125125
.includes(&self.includes)
126+
.customize(self.rust_protobuf_customize.clone())
126127
.run()
127128
.expect("Gen rust protobuf failed.");
128129
}

0 commit comments

Comments
 (0)