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

#469 in Unix APIs

Download history 4133/week @ 2024-06-18 3874/week @ 2024-06-25 3954/week @ 2024-07-02 3967/week @ 2024-07-09 3996/week @ 2024-07-16 3964/week @ 2024-07-23 4130/week @ 2024-07-30 4154/week @ 2024-08-06 3930/week @ 2024-08-13 3935/week @ 2024-08-20 4335/week @ 2024-08-27 4346/week @ 2024-09-03 7443/week @ 2024-09-10 6764/week @ 2024-09-17 4977/week @ 2024-09-24 4206/week @ 2024-10-01

24,151 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–18MB
~224K SLoC