19 releases (stable)

7.0.0 Nov 27, 2022
6.0.0 Feb 16, 2022
5.0.1 Apr 27, 2021
5.0.0 Jan 16, 2021
0.1.0 Apr 14, 2018

#334 in Unix APIs

Download history 3914/week @ 2024-08-14 3968/week @ 2024-08-21 4345/week @ 2024-08-28 4493/week @ 2024-09-04 8018/week @ 2024-09-11 6209/week @ 2024-09-18 4936/week @ 2024-09-25 4813/week @ 2024-10-02 5029/week @ 2024-10-09 4650/week @ 2024-10-16 4469/week @ 2024-10-23 4171/week @ 2024-10-30 3871/week @ 2024-11-06 3956/week @ 2024-11-13 3808/week @ 2024-11-20 3355/week @ 2024-11-27

15,546 downloads per month
Used in 8 crates (7 directly)

MPL-2.0 license

30KB
531 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


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-ptb"]).await?;
assert_eq!(pkgs.len(), 2);

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

Dependencies

~4–16MB
~221K SLoC