mirror of
https://github.com/scsibug/nostr-rs-relay.git
synced 2024-09-19 15:05:50 -04:00
35a1973a46
Add --experimental_allow_proto3_optional protoc arg in build configs fixes https://github.com/scsibug/nostr-rs-relay/issues/77
10 lines
281 B
Rust
10 lines
281 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(())
|
|
} |