1 2 3 4 5 6 7 8 9 10 11 12
use tonic_build; fn main() -> Result<(), Box<dyn std::error::Error>> { tonic_build::configure() .build_client(true) .build_server(false) .compile( &["lnd/lnrpc/rpc.proto"], &["lnd/", "grpc-gateway/third_party/googleapis/"], )?; Ok(()) }