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

#225 in Network programming

Download history 2918/week @ 2022-10-07 3008/week @ 2022-10-14 2932/week @ 2022-10-21 2969/week @ 2022-10-28 5198/week @ 2022-11-04 3838/week @ 2022-11-11 3181/week @ 2022-11-18 2985/week @ 2022-11-25 3542/week @ 2022-12-02 3111/week @ 2022-12-09 2988/week @ 2022-12-16 2981/week @ 2022-12-23 2816/week @ 2022-12-30 2914/week @ 2023-01-06 2673/week @ 2023-01-13 3097/week @ 2023-01-20

11,996 downloads per month
Used in 7 crates (6 directly)

MPL-2.0 license

29KB
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


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

Dependencies

~4–11MB
~237K SLoC