1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
use std::io::Result; fn main() -> Result<()> { let out_dir = std::path::PathBuf::from("src/geoparsers/v2ray/"); prost_build::Config::new() .out_dir(&out_dir) .compile_protos( &[ "src/geoparsers/v2ray/proto_src/geosite.proto", ], &["src/geoparsers/v2ray/proto_src/"], )?; Ok(()) }