Crates.io | raur |
lib.rs | raur |
version | 7.0.0 |
source | src |
created_at | 2018-04-14 04:40:39.220117 |
updated_at | 2022-11-27 18:47:52.840771 |
description | A simple wrapper to query the AUR RPC. |
homepage | |
repository | https://www.gitlab.com/DavidBittner/raur |
max_upload_size | |
id | 60512 |
size | 47,351 |
raur is a library for interacting with the aurweb RPC Interface.
See also the Arch wiki page for more information.
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);
}