Crates.io | gitpoap-rs |
lib.rs | gitpoap-rs |
version | 0.1.0 |
source | src |
created_at | 2024-06-29 03:53:40.308053 |
updated_at | 2024-06-29 03:53:40.308053 |
description | A gitpoap client written in Rust |
homepage | https://github.com/woxjro/gitpoap-rs |
repository | https://github.com/woxjro/gitpoap-rs |
max_upload_size | |
id | 1287152 |
size | 46,524 |
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.
wasm-pack
wasm-pack
, follow the instructions here.Compile to native
:
$ cargo build
Compile to wasm
:
$ wasm-pack build --target web
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);
}
}
}