A native Rust library for Mozilla's Public Suffix List
Setting Up
Add this crate to your Cargo.toml
:
[]
= "0.1"
Examples
extern crate psl;
use ;
let list = new;
let suffix = list.suffix?;
let domain = list.domain?;
Add this crate to your Cargo.toml
:
[dependencies]
psl = "0.1"
extern crate psl;
use psl::{Psl, List};
let list = List::new();
let suffix = list.suffix("example.com")?;
let domain = list.domain("example.com")?;