gh-pinned-rs

Crates.iogh-pinned-rs
lib.rsgh-pinned-rs
version2.0.5
created_at2024-05-31 06:59:31.901691+00
updated_at2025-01-15 19:12:38.001912+00
descriptionFetch pinned repositories from github.
homepagehttps://github.com/qxb3/gh-pinned-rs
repositoryhttps://github.com/qxb3/gh-pinned-rs
max_upload_size
id1257732
size12,361
(qxb3)

documentation

https://docs.rs/gh-pinned-rs

README

gh-pinned-rs

Fetch pinned repositories from github.

Installation

cargo add gh-pinned-rs
[dependencies]
gh-pinned-rs = "2.0.4"

Example

use gh_pinned_rs::pinned;

#[tokio::main]
async fn main() {
    match pinned("qxb3").await {
        Ok(repos) => println!("Pinned repositories: {:?}", repos),
        Err(err) => eprintln!("Error: {}", err),
    }
}

Blocking

cargo add gh-pinned-rs --features blocking
[dependencies]
gh-pinned-rs = { version = "2.0.4", features = ["blocking"] }

Blocking Example

use gh_pinned_rs::blocking::pinned;

fn main() {
    match pinned("qxb3") {
        Ok(repos) => println!("Pinned repositories: {:?}", repos),
        Err(err) => eprintln!("Error: {}", err),
    }
}

Contribution

Contributions to gh-pinned-rs are welcome! If you have ideas for improvements, new features, or bug fixes, feel free to open an issue or submit a pull request on gh-pinned-rs

Commit count: 23

cargo fmt