Skip to content

woxjro/gitpoap-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gitpoap-rs

A Rust implementation of the gitpoap. It supports both the wasm and native targets. So, you can use it in the browser or in the terminal.

Prerequisites

  • wasm-pack
    • To install wasm-pack, follow the instructions here.

Build

Compile to native:

$ cargo build

Compile to wasm:

$ wasm-pack build --target web

Usage

use gitpoap_rs::v1::get_gitpoaps_for_github_user;

#[tokio::main]
async fn main() {
    let github_handle = "woxjro";
    let response = get_gitpoaps_for_github_user(github_handle, None).await;
    match response {
        Ok(gitpoaps_response) => {
            dbg!("{:?}", gitpoaps_response);
        }
        Err(e) => {
            eprintln!("Error: {}", e);
        }
    }
}

Releases

No releases published

Packages

No packages published

Languages