A cache manager for the publicsuffix crate
The publicsuffix crate is a low level crate that allows you to optionally use Mozilla's Public Suffix List to parse domain names and email addresses. It provides methods for fetching the list but it doesn't try to handle caching for you. If you use the list in long running applications, you need a way to keep the list updated. This is where this crate comes in. It downloads the list at a specific interval (every week by default).
This initial version only keeps a cache in memory. If you restart your application, your current cache will be lost so the list will be downloaded again.
Quick Start
Add this crate to your dependencies:-
[]
= "0.0.1"
= "1.3"
# The following crates are optional but recommended. Without logging,
# you won't know if updates start failing in future.
= "1.2"
= "1.3"
Call init from your main.rs:-
extern crate psl;
extern crate publicsuffix;
extern crate slog;
extern crate slog_term;
use LIST_URL;
use ;