| Crates.io | github-trending-rs |
| lib.rs | github-trending-rs |
| version | 0.0.5 |
| created_at | 2025-06-07 22:29:58.930335+00 |
| updated_at | 2025-09-20 08:53:03.243759+00 |
| description | A simple Rust crate to fetch trending repositories from GitHub. |
| homepage | |
| repository | https://github.com/dearfl/github-trending-rs |
| max_upload_size | |
| id | 1704474 |
| size | 737,403 |
A simple Rust crate to fetch trending repositories from GitHub.
use std::time::Duration;
use github_trending_rs::{Language, Since, TrendExt};
#[tokio::main]
async fn main() -> anyhow::Result<()> {
let client = reqwest::ClientBuilder::new()
.connect_timeout(Duration::from_secs(5))
.timeout(Duration::from_secs(10))
.build()?;
let repos = client
.github_trending()
.with_language(Language::Rust)
.since(Since::Daily)
.repositories()
.await?
.all();
for repo in repos {
println!("{:#?}", repo);
}
Ok(())
}
This project is licensed under the GLWTPL (Good Luck With That Public License). See the LICENSE file for more details.