raur

Crates.ioraur
lib.rsraur
version7.0.0
sourcesrc
created_at2018-04-14 04:40:39.220117
updated_at2022-11-27 18:47:52.840771
descriptionA simple wrapper to query the AUR RPC.
homepage
repositoryhttps://www.gitlab.com/DavidBittner/raur
max_upload_size
id60512
size47,351
Lulu (Morganamilo)

documentation

https://docs.rs/raur

README

pipeline status

raur

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

See also the Arch wiki page for more information.

Example

use raur::Raur;

let raur = raur::Handle::new();

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

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

// Use `info` to get info about a list of packages. Not-found packages are silently ignored.
let pkgs = raur.info(&["spotify", "discord-canary"]).await?;
assert_eq!(pkgs.len(), 2);

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

Commit count: 0

cargo fmt