clash_rules 0.1.6

a clash yaml rule parser and matching algorithms provider
Documentation
1
2
3
4
5
6
7
8
9
10
This project can parse the rules in Clash’s YAML configuration files and provides an optimized matching algorithm.
The project uses functional programming.

DOMAIN-SUFFIX, IP-CIDR(6) uses radix trie ,DOMAIN-KEYWORD uses Aho-Corasick Automaton.

For examples, see the test at the end of the lib.rs and benches/algorithms.

There's a convenient struct `ClashRuleMatcher`.

Also has feature to load and save to sqlite