Compiles proto files via prost and generates service stubs and proto definitiones for use with tonic.
Required dependencies
```toml
[dependencies]
tonic =
[build-dependencies]
tonic-build =
rust
fn main() -> Result<(), Box<dyn std::error::Error>> {
tonic_build::compile_protos("proto/service.proto")?;
Ok(())
}
rust
fn main() -> Result<(), Box<dyn std::error::Error>> {
tonic_build::configure()
.build_server(false)
.compile(
&["proto/helloworld/helloworld.proto"],
&["proto/helloworld"],
)?;
Ok(())
}