#arch-linux #aur #rpc #package #api-bindings

aur-rs

Library for interacting with the Arch User Repository's RPC interface

2 releases

0.1.1 Jul 10, 2023
0.1.0 Jun 25, 2023

#18 in #aur

Download history 34/week @ 2024-11-03 20/week @ 2024-11-10 28/week @ 2024-11-17 3/week @ 2024-11-24 29/week @ 2024-12-01 72/week @ 2024-12-08 18/week @ 2024-12-15 2/week @ 2024-12-22 6/week @ 2025-01-05 17/week @ 2025-01-12 5/week @ 2025-01-19 5/week @ 2025-01-26 8/week @ 2025-02-02 43/week @ 2025-02-09 1/week @ 2025-02-16

57 downloads per month

MIT license

22KB
216 lines

aur-rs

builds.sr.ht status crates.io docs.rs license

aur-rs is a library that provides a simple and easy-to-use interface for working with the Arch User Repository (AUR). It's written in Rust and has full support for the latest version 5 API of the AUR. The library allows you to search for packages, download package information, and more.

Features

  • Full support for the AUR v5 path based API
  • Asynchronous API
  • Support for searching for packages

Usage

Add the following to your Cargo.toml:

[dependencies]
aur-rs = "0.1"

Then for a simple name search example,

use aur_rs::{Request, ReturnData};

#[tokio::main]
async fn main() {
    let request = Request::default();
    let response = request
        .search_package_by_name("package_name")
        .await
        .unwrap();
    println!("{:#?}", data);
}

For more examples, see the examples directory.

License

aur-rs is licensed under the MIT license (LICENSE or http://opensource.org/licenses/MIT)

Dependencies

~6–19MB
~259K SLoC