15 releases (stable)

new 4.0.1 Nov 20, 2020
3.0.1 Jul 24, 2020
2.0.2 Feb 5, 2020
2.0.1 Sep 9, 2019
0.1.0 Apr 14, 2018

#57 in Parser implementations

Download history 94/week @ 2020-08-04 241/week @ 2020-08-11 206/week @ 2020-08-18 135/week @ 2020-08-25 148/week @ 2020-09-01 139/week @ 2020-09-08 93/week @ 2020-09-15 113/week @ 2020-09-22 125/week @ 2020-09-29 233/week @ 2020-10-06 190/week @ 2020-10-13 246/week @ 2020-10-20 1088/week @ 2020-10-27 644/week @ 2020-11-03 741/week @ 2020-11-10 1557/week @ 2020-11-17

1,611 downloads per month
Used in 7 crates (6 directly)

MPL-2.0 license

27KB
491 lines

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);
}


lib.rs:

raur

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

See also the Arch wiki page for more information.

Example

# #[tokio::main]
# async fn main() -> Result<(), raur::Error> {
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);
}
# Ok(())
# }

Dependencies

~3.5–7MB
~169K SLoC