17 releases (stable)

5.0.1 Apr 27, 2021
5.0.0 Jan 16, 2021
4.0.1 Nov 20, 2020
3.0.1 Jul 24, 2020
0.1.0 Apr 14, 2018

#70 in Unix APIs

Download history 633/week @ 2021-01-15 5726/week @ 2021-01-22 7454/week @ 2021-01-29 3595/week @ 2021-02-05 2890/week @ 2021-02-12 2741/week @ 2021-02-19 2290/week @ 2021-02-26 2204/week @ 2021-03-05 2423/week @ 2021-03-12 2193/week @ 2021-03-19 2260/week @ 2021-03-26 2110/week @ 2021-04-02 2351/week @ 2021-04-09 2108/week @ 2021-04-16 2121/week @ 2021-04-23 7939/week @ 2021-04-30

12,237 downloads per month
Used in 7 crates (6 directly)

MPL-2.0 license

27KB
493 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

# #[tokio::main]
# async fn main() -> Result<(), raur::Error> {
# #[cfg(feature = "async")]
# {
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);
}
# }
# Ok(())
# }

Dependencies

~3–7MB
~168K SLoC