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. This is where this crate comes in. It downloads the list at a specific interval (once every week by default). When it downloads a new version it saves it to disk. After that, it won't try to download again until the saved one has expired.
Quick Start
Add this crate to your dependencies:-
[]
= "0.0.3"
= "1.4"
# The following crates are optional but recommended. Without logging,
# you won't know if updates start failing in future.
= "2.0"
= "2.0"
= "2.0"
Call init
from your main.rs
:-
extern crate psl;
extern crate publicsuffix;
extern crate slog;
extern crate slog_term;
extern crate slog_async;
use LIST_URL;
use ;