rust: Support protobuf wrappers well known types
Test: m nothing Change-Id: I271474f59745670cbba98704182d0966eae6b0ee
This commit is contained in:
parent
f25ab75d63
commit
b6be48d6c9
1 changed files with 6 additions and 0 deletions
|
@ -188,6 +188,12 @@ func (proto *protobufDecorator) genModFileContents() string {
|
|||
lines,
|
||||
"pub mod empty {",
|
||||
" pub use protobuf::well_known_types::Empty;",
|
||||
"}",
|
||||
"pub mod wrappers {",
|
||||
" pub use protobuf::well_known_types::{",
|
||||
" DoubleValue, FloatValue, Int64Value, UInt64Value, Int32Value, UInt32Value,",
|
||||
" BoolValue, StringValue, BytesValue",
|
||||
" };",
|
||||
"}")
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue