Skip to content

Commit 9ea607a

Browse files
authored
Merge pull request #58 from Tim-Zhang/apply-customize-codegen
ttrpc-codegen: fix protobuf customization unapplying
2 parents 9470d13 + 3c4ed13 commit 9ea607a

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

ttrpc-codegen/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "ttrpc-codegen"
3-
version = "0.1.1"
3+
version = "0.1.2"
44
edition = "2018"
55
authors = ["The AntFin Kata Team <[email protected]>"]
66
license = "Apache-2.0"

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)