update bytes(protobuf types) mapping, from Vec<u8> to bytes:Byte

issues:958
This commit is contained in:
tom committed 2022-07-16 00:45:23 +08:00
1 parent c6c5d2cb98
commit efa6b5972d
13 files changed
+34 -25

No files matched your search

+5
View File
@@ -5,6 +5,11 @@ fn main() {
.out_dir("src/protos")
.inputs(&["protos/rendezvous.proto", "protos/message.proto"])
.include("protos")
.customize(
protobuf_codegen::Customize::default()
.tokio_bytes(true)
// .tokio_bytes_for_string(true)
)
.run()
.expect("Codegen failed.");
}