Registry / utility / crates-index

crates-index

JSON →
library3.12.1rscratesunverified

Library for retrieving and interacting with the crates.io index.

# Cargo.toml [dependencies] crates-index = "3.12.1"
INSTALL
IMPORT
SIG · CRATES-INDEX
C
crates-index
utilityrustv3.12.1
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.

Index
✓ use crates_index::Index;

Opens the default crates.io index and prints all crate names.

use crates_index::Index; fn main() -> Result<(), Box<dyn std::error::Error>> { let index = Index::new_cargo_default()?; for crate_ in index.crates() { println!("{}", crate_.name()); } Ok(()) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
3.12.1latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
crates-index — cargo add crates-index · libregistry