fn main() -> Result<(), Box> { tonic_build::configure() .build_server(true) .build_client(true) .compile(&["pb/encoder/encoder.proto"], &["pb/encoder"])?; Ok(()) }