Registry / http-client / octocrab

octocrab

JSON →
library0.51.0rscratesunverified

A modern, extensible GitHub API client for Rust.

# Cargo.toml [dependencies] octocrab = "0.51.0"
INSTALL
IMPORT
SIG · OCTOCRAB
O
octocrab
http-clientrustv0.51.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Octocrab
✓ use octocrab::Octocrab;

Fetching a repository's information from GitHub.

use octocrab::Octocrab; #[tokio::main] async fn main() -> Result<(), octocrab::Error> { let octocrab = Octocrab::builder().personal_token("ghp_...").build()?; let repo = octocrab.repos("owner", "repo").get().await?; println!("Repo: {}", repo.name); Ok(()) }
Debug
Known issues
gotchaRequires a Tokio runtime; async only.
fix
Use #[tokio::main] or another async runtime.
affects: >=0.1.0
Upgrade
Version history
0.51.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
35 hits · last 30 days
node
32
Amazon
1
OpenAI (training)
1
Resources
octocrab — cargo add octocrab · libregistry