#aur #rpc #json #archlinux #arch

raur

A simple wrapper to access the AUR (Arch User Repository) from Rust

10 releases (5 stable)

✓ Uses Rust 2018 edition

2.0.1 Sep 9, 2019
2.0.0 Sep 3, 2019
1.0.2 May 31, 2019
0.3.2 May 18, 2019
0.1.0 Apr 14, 2018

#27 in HTTP client

Download history 48/week @ 2019-05-27 42/week @ 2019-06-03 87/week @ 2019-06-10 44/week @ 2019-06-17 120/week @ 2019-06-24 72/week @ 2019-07-01 56/week @ 2019-07-08 15/week @ 2019-07-15 9/week @ 2019-07-22 23/week @ 2019-07-29 48/week @ 2019-08-05 12/week @ 2019-08-12 47/week @ 2019-08-19 182/week @ 2019-08-26 119/week @ 2019-09-02

280 downloads per month
Used in 5 crates (4 directly)

MPL-2.0 license

16KB
261 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 `search` to search using keywords (multiple strategies available)
let pkgs = raur::search("pacman")?;
assert!(pkgs.len() > 10);

for pkg in pkgs {
    println!("{:<30}{}", pkg.name, pkg.version);
}

// Use `info` to get info about a specific packages.
let pkgs = raur::info(&["spotify", "discord"])?;
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

# fn main() -> Result<(), raur::Error> {
// Use `search` to search using keywords (multiple strategies available)
let pkgs = raur::search("pacman")?;
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"])?;
assert_eq!(pkgs.len(), 2);

for pkg in pkgs {
    println!("{:<30}{}", pkg.name, pkg.version);
}
# Ok(())
# }

Dependencies

~16MB
~407K SLoC