hubcaps 0.6.2

Rust interface for Github
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use hubcaps::{Github, Result};

#[tokio::main]
async fn main() -> Result<()> {
    pretty_env_logger::init();
    let github = Github::new(
        concat!(env!("CARGO_PKG_NAME"), "/", env!("CARGO_PKG_VERSION")),
        None,
    )?;
    let status = github.rate_limit().get().await?;
    println!("{:#?}", status);
    Ok(())
}