1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
fn main() -> Result<(), Box<dyn std::error::Error>> { // Uncomment the code below and cargo build again, when updating google protos // tonic_build::configure() // .build_server(false) // .out_dir("src/google") // .compile( // &[ // "../googleapis/google/bigtable/v2/bigtable.proto", // "../googleapis/test/bigtable_test.proto", // only works with fork https://github.com/liufuyang/googleapis // ], // &["../googleapis"], // )?; Ok(()) }