#rustgtrending
Lightweight and easy-to-use rust library for fetching trending repositories and developers. Relies on github-trending-api which is in JavaScript, so gtrending aims to fill the gap for rust.
Simple Example
-
Fetch trending devs:
use tokio;
use rustgtrending;
use Error;
/// Use tokio runtime to enable asynchronous coding.
/// Without a runtime, rust can't be able to call asynchronous functions
/// such as `rustgtrending::fetch_developers`
async
-
Fetch trending repositories:
use tokio;
use rustgtrending;
use Error;
async