url-sanitize-core
Pure-Rust implementation for removing tracking parameters and unwrapping tracking redirects according to the url-sanitize behavioral spec.
Engine only — no embedded catalog. For a ready-to-use binary with the merged
ClearURLs, AdGuard, Brave, and Firefox catalog baked in, see the
url-sanitize crate.
use ;
let json = read_to_string?;
let catalog = from_json?;
let sanitizer = catalog.compile;
let result = sanitizer.sanitize;
println!;
Conformance with the TypeScript engine is verified by the shared corpus in
conformance/.