[][src]Crate raur

raur

raur is a library for interacting with the aurweb RPC Interface.

See also the Arch wiki page for more information.

Example

// Use `search` to search using keywords (multiple strategies available)
let pkgs = raur::search("pacman")?;
assert!(pkgs.len() > 10);

for pkg in pkgs {
    println!("{:<30}{}", pkg.name, pkg.version);
}

// Use `info` to get info about a specific packages.
let pkgs = raur::info(&["spotify", "discord"])?;
assert_eq!(pkgs.len(), 2);

for pkg in pkgs {
    println!("{:<30}{}", pkg.name, pkg.version);
}

Structs

Package

The package info that a query will return.

Enums

Error

The error type for raur.

SearchBy

What field to search by.

Functions

info

Performs an AUR info request.

orphans

Returns a list of all orphan packages in the AUR.

search

Performs an AUR search request by NameDesc.

search_by

Performs an AUR search request.