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

#221 in Unix APIs

Download history 3534/week @ 2023-11-19 14795/week @ 2023-11-26 7016/week @ 2023-12-03 5425/week @ 2023-12-10 4752/week @ 2023-12-17 4557/week @ 2023-12-24 4424/week @ 2023-12-31 4299/week @ 2024-01-07 4233/week @ 2024-01-14 4176/week @ 2024-01-21 4131/week @ 2024-01-28 4144/week @ 2024-02-04 3905/week @ 2024-02-11 3855/week @ 2024-02-18 3918/week @ 2024-02-25 4107/week @ 2024-03-03

16,425 downloads per month
Used in 7 crates (6 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–17MB
~253K SLoC