10 stable releases
2.0.5 | Jan 15, 2025 |
---|---|
1.0.4 | Jun 1, 2024 |
1.0.2 | May 31, 2024 |
#544 in Asynchronous
581 downloads per month
12KB
149 lines
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
Dependencies
~4–15MB
~194K SLoC