summaryrefslogtreecommitdiff
path: root/rust/protobuf.go
diff options
context:
space:
mode:
author David Duarte <licorne@google.com> 2022-01-04 08:51:21 +0000
committer David Duarte <licorne@google.com> 2022-01-04 08:52:45 +0000
commitb6be48d6c985d4b61ae4693a3e4380a2468d0d07 (patch)
tree0d42e1a097e37e160a94771abcf03f1d07958cb0 /rust/protobuf.go
parentf25ab75d63805bd6db252d49fa8e47d56e797a0e (diff)
rust: Support protobuf wrappers well known types
Test: m nothing Change-Id: I271474f59745670cbba98704182d0966eae6b0ee
Diffstat (limited to 'rust/protobuf.go')
-rw-r--r--rust/protobuf.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/rust/protobuf.go b/rust/protobuf.go
index b91fea86e..9fe27c4c9 100644
--- a/rust/protobuf.go
+++ b/rust/protobuf.go
@@ -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",
+ " };",
"}")
}