github-trending-rs 0.0.5

A simple Rust crate to fetch trending repositories from GitHub.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use crate::{Repository, Trending};

#[test]
fn parse_repo() {
    let content = std::fs::read_to_string("./tests/repo-daily-2025-06-08.html").unwrap();
    let trends: Trending<Repository> = Trending {
        raw: content,
        _t: std::marker::PhantomData,
    };
    let repos = trends.all();
    assert!(!repos.is_empty());
}