Skip to main content

Crate repology

Crate repology 

Source
Expand description

§repology

Rust client for the Repology API.

§Quick Start

use repology::{RepologyClient, ProjectFilter};

let client = RepologyClient::new()?;

// Fetch a single project
let packages = client.project("firefox").await?;
println!("firefox has {} packages", packages.len());

// Find outdated packages in Debian 12 (Bookworm)
let filter = ProjectFilter::new()
    .inrepo("debian_12")
    .outdated(true);
let projects = client.projects(&filter).await?;
for (name, packages) in &projects {
    println!("{name}: {}", packages[0].version);
}

Re-exports§

pub use blocking::RepologyBlockingClient;
pub use models::Package;
pub use models::PackageStatus;
pub use models::Problem;
pub use models::ProblemType;

Modules§

blocking
models

Structs§

ProjectFilter
Builder for query parameters when listing projects.
RepologyClient
Async client for the Repology API.

Enums§

Error
All errors that can occur when using the Repology client.

Type Aliases§

Result