Written geosite protobuf parser and tests 4 it
This commit is contained in:
parent
da8e70f2e3
commit
8887a775f5
10 changed files with 548 additions and 18 deletions
16
build.rs
Normal file
16
build.rs
Normal file
|
|
@ -0,0 +1,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(())
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue