2 releases

Uses new Rust 2024

0.1.1 Apr 8, 2025
0.1.0 Apr 8, 2025

#9 in #dbg

Download history 108/week @ 2025-04-02 110/week @ 2025-04-09 21/week @ 2025-04-16

239 downloads per month

GPL-3.0-only

29KB
280 lines

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);
}

Dependencies

~4–16MB
~200K SLoC