#protobuf #dat #file-format #parses #geo-ip #build #geosite

bin+lib geosite-rs

A simple crate that parses geosite.dat file format

7 releases

new 0.1.6 Feb 19, 2025
0.1.5 Feb 19, 2025

#628 in Data structures

Download history 484/week @ 2025-02-12

484 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