#protobuf #dat-file

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

#1388 in Data structures

Download history 4/week @ 2025-10-21 121/week @ 2026-01-13

121 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

~315KB