Merge "rust: Support protobuf wrappers well known types"

This commit is contained in:
Treehugger Robot 2022-01-04 19:54:44 +00:00 committed by Gerrit Code Review
commit 0b9b99adf2

View file

@ -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",
" };",
"}")
}