Add the `experimental_allow_proto3_optional` flag (#8282)
This commit is contained in:
parent
fbddec3cb3
commit
96c0d42d74
|
@ -3,6 +3,7 @@
|
|||
fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||
tonic_build::configure()
|
||||
.btree_map(["."])
|
||||
.protoc_arg("--experimental_allow_proto3_optional")
|
||||
.type_attribute(".", "#[derive(serde::Deserialize, serde::Serialize)]")
|
||||
.compile(&["proto/scanner.proto"], &[""])?;
|
||||
Ok(())
|
||||
|
|
Loading…
Reference in New Issue