mirror of
https://github.com/scsibug/nostr-rs-relay.git
synced 2024-11-13 22:49:07 -05:00
35a1973a46
Add --experimental_allow_proto3_optional protoc arg in build configs fixes https://github.com/scsibug/nostr-rs-relay/issues/77
11 lines
276 B
Rust
11 lines
276 B
Rust
fn main() -> Result<(), Box<dyn std::error::Error>> {
|
|
tonic_build::configure()
|
|
.build_server(false)
|
|
.protoc_arg("--experimental_allow_proto3_optional")
|
|
.compile(
|
|
&["proto/nauthz.proto"],
|
|
&["proto"],
|
|
)?;
|
|
Ok(())
|
|
}
|