summaryrefslogtreecommitdiff
path: root/build.rs
blob: 99e430f95bcbe683e01f5e7e1bbc427f6508964e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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(())
}