| Crates.io | gh-pinned-rs |
| lib.rs | gh-pinned-rs |
| version | 2.0.5 |
| created_at | 2024-05-31 06:59:31.901691+00 |
| updated_at | 2025-01-15 19:12:38.001912+00 |
| description | Fetch pinned repositories from github. |
| homepage | https://github.com/qxb3/gh-pinned-rs |
| repository | https://github.com/qxb3/gh-pinned-rs |
| max_upload_size | |
| id | 1257732 |
| size | 12,361 |
Fetch pinned repositories from github.
cargo add gh-pinned-rs
[dependencies]
gh-pinned-rs = "2.0.4"
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),
}
}
cargo add gh-pinned-rs --features blocking
[dependencies]
gh-pinned-rs = { version = "2.0.4", features = ["blocking"] }
use gh_pinned_rs::blocking::pinned;
fn main() {
match pinned("qxb3") {
Ok(repos) => println!("Pinned repositories: {:?}", repos),
Err(err) => eprintln!("Error: {}", err),
}
}
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