tranco

Crates.iotranco
lib.rstranco
version0.1.1
created_at2025-04-08 06:20:32.684464+00
updated_at2025-04-08 06:23:54.740055+00
descriptionRust library for the Tranco list
homepagehttps://tranco-list.eu/
repositoryhttps://github.com/witchof0x20/tranco
max_upload_size
id1625110
size96,609
Jade (witchof0x20)

documentation

README

tranco-rs

Rust library for the Tranco domain ranking.

See the example for how to use it.

use tranco::Client;

#[tokio::main]
async fn main() {
    let client = Client::new();
    let ranks = client.ranks("google.com").await;
    dbg!(&ranks);
    let list = client.list("LJL44").await;
    dbg!(&list);
    let list2 = client.list_date(2025, 04, 07, Some(false)).await;
    dbg!(&list2);
    let downloaded_list = client.download_list(&list2.unwrap()).await;
    dbg!(&downloaded_list);
}
Commit count: 0

cargo fmt