Written geosite protobuf parser and tests 4 it

This commit is contained in:
namilsk 2026-03-18 21:21:21 +03:00
parent da8e70f2e3
commit 8887a775f5
No known key found for this signature in database
GPG key ID: 2B2F0A4D870B4F9F
10 changed files with 548 additions and 18 deletions

16
build.rs Normal file
View 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(())
}