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(()) }