Expand description
This is a simple domain matching algorithm to match domains against a set of user-defined domain rules.
Features:
- Super fast (197 ns per match for a 73300+ domain rule set)
- No dependencies
§Getting Started
use dmatcher::Dmatcher;
let mut matcher = Dmatcher::new();
matcher.insert("apple.com", "global").unwrap();
assert_eq!(matcher.matches("store.apple.com").unwrap(), Some("global".into()));
Structs§
- Dmatcher
- Dmatcher matcher algorithm
Type Aliases§
- Label
- Type alias for Dmatcher internal usages. Exposed in case that you need it.