#tld #public-private #suffix

tld_download

Download public & private gTLD & ccTLD

7 releases

0.1.4 Jul 9, 2025
0.1.3 May 16, 2024
0.1.2 Mar 23, 2022
0.1.1 Jan 28, 2022
0.0.2 Jan 27, 2022

#1559 in Database interfaces


Used in ioc_extract

Custom license

93KB
94 lines

TLD Download

Linux Arm7 Linux x86_64 macOS

Downloads tld suffixes to a file

Requirements

  • Rust 1.75+

Usage

You can include this in your Cargo.toml file:

[dependencies]
tld_download = "0.1.4"

If you want to use it with the inbuilt public suffix db; then:

[dependencies]
tld_download = { version = "0.1.4", features = ["with-db"] }

and then

use tld_download::from_db;

fn main () {
    let db = from_db();
    assert!(!db.is_empty());
}

License: MIT

Dependencies

~8–28MB
~396K SLoC