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

#745 in Unix APIs

Download history 3956/week @ 2024-11-15 3821/week @ 2024-11-22 3831/week @ 2024-11-29 4156/week @ 2024-12-06 4078/week @ 2024-12-13 4376/week @ 2024-12-20 4362/week @ 2024-12-27 4238/week @ 2025-01-03 4171/week @ 2025-01-10 3965/week @ 2025-01-17 3982/week @ 2025-01-24 4352/week @ 2025-01-31 4300/week @ 2025-02-07 4510/week @ 2025-02-14 4637/week @ 2025-02-21 4731/week @ 2025-02-28

18,815 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–17MB
~225K SLoC