{"id":63657,"library":"publicsuffix","title":"PublicSuffix","description":"Extract root domain and suffix from a domain name using the Public Suffix List.","status":"active","version":"2.3.0","language":"rust","source_language":null,"source_url":"https://github.com/rushmorem/publicsuffix","tags":["domain","suffix","url","parsing","public-suffix"],"install":[{"cmd":"# Cargo.toml\n[dependencies]\npublicsuffix = \"2.3.0\"","lang":"toml","label":"Cargo.toml"},{"cmd":"cargo add publicsuffix","lang":"bash","label":"cargo add"}],"dependencies":[],"imports":[{"symbol":"List","correct":"use publicsuffix::List;"}],"quickstart":{"code":"use publicsuffix::List;\n\nfn main() -> Result<(), Box<dyn std::error::Error>> {\n    let list = List::from_url(\"https://publicsuffix.org/list/public_suffix_list.dat\")?;\n    let domain = list.parse_domain(\"www.example.com\")?;\n    println!(\"Root domain: {}\", domain.root());\n    Ok(())\n}","lang":"rust","description":"Fetch the Public Suffix List and extract the root domain from a URL."},"warnings":[{"fix":"Use List::from_path() with a pre-downloaded file or implement caching.","message":"Requires network access to fetch the list; consider caching locally.","severity":"gotcha","affected_versions":">=2.0.0"}],"env_vars":null,"search_vec":"'domain':4,9,16 'extract':2 'list':15 'name':10 'pars':19 'public':13,21 'public-suffix':20 'publicsuffix':1 'root':3 'suffix':6,14,17,22 'url':18 'use':11","created_at":"2026-06-17T16:46:33.278417+00:00","updated_at":"2026-06-17T16:46:33.278417+00:00","problems":[],"ecosystem":"crates","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/rushmorem/publicsuffix","github":"https://github.com/rushmorem/publicsuffix","docs":"https://docs.rs/publicsuffix/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["utility"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-17","next_check":"2026-12-14","install_tag":null}}