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

#138 in Unix APIs

Download history 4292/week @ 2024-01-11 4199/week @ 2024-01-18 4093/week @ 2024-01-25 4121/week @ 2024-02-01 4071/week @ 2024-02-08 3807/week @ 2024-02-15 3789/week @ 2024-02-22 4050/week @ 2024-02-29 4309/week @ 2024-03-07 6770/week @ 2024-03-14 5205/week @ 2024-03-21 4884/week @ 2024-03-28 4208/week @ 2024-04-04 3882/week @ 2024-04-11 3805/week @ 2024-04-18 3198/week @ 2024-04-25

15,748 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–16MB
~244K SLoC