1 2 3 4 5 6 7 8 9 10 11 12
fn main() { let mut conf = prost_build::Config::new(); conf.bytes([".hrpc.v1.Error"]); hrpc_build::configure() .compile_with_config( conf, &["hrpc-main/protocol/hrpc.proto"], &["hrpc-main/protocol"], ) .expect("failed to compile hRPC proto"); }