#protobuf #format #com #geosite

bin+lib geosite-rs

A simple crate that parses geosite.dat file format

7 releases

0.1.6 Feb 19, 2025
0.1.5 Feb 19, 2025

#634 in Data structures

Download history 62/week @ 2025-02-07 484/week @ 2025-02-14 95/week @ 2025-02-21 128/week @ 2025-02-28 276/week @ 2025-03-07 8/week @ 2025-03-14

560 downloads per month

MIT/Apache

11KB
199 lines

A simple crate that parses geosite.dat or geoip.dat file format defined in https://github.com/v2fly/v2ray-core/blob/master/app/router/routercommon/common.proto

dat files can be found at https://github.com/Loyalsoldier/v2ray-rules-dat and https://github.com/v2fly/domain-list-community

The crate is designed to be compatible with the crate "clash_rules".

commented out code in build.rs shows how to generate the protobuf rust code.

Dependencies

~320KB