| Crates.io | tranco |
| lib.rs | tranco |
| version | 0.1.1 |
| created_at | 2025-04-08 06:20:32.684464+00 |
| updated_at | 2025-04-08 06:23:54.740055+00 |
| description | Rust library for the Tranco list |
| homepage | https://tranco-list.eu/ |
| repository | https://github.com/witchof0x20/tranco |
| max_upload_size | |
| id | 1625110 |
| size | 96,609 |
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);
}