7 releases

0.2.2 Nov 5, 2022
0.2.1 Sep 25, 2022
0.1.3 Sep 3, 2022
0.1.2 Aug 24, 2022
0.1.1 Jul 24, 2022

#930 in Unix APIs

Download history 9/week @ 2024-01-08 7/week @ 2024-01-22 10/week @ 2024-01-29 20/week @ 2024-02-05 39/week @ 2024-02-19 52/week @ 2024-02-26 37/week @ 2024-03-04 62/week @ 2024-03-11 45/week @ 2024-03-18 33/week @ 2024-03-25 45/week @ 2024-04-01

191 downloads per month

Apache-2.0

11KB
226 lines

aur-rpc

This crate is an async wrapper for calls to the Arch Linx User Repository.

Example

#[tokio::main]
pub async fn main() {
   let packages = aur_rpc::search("yay").await.unwrap();

   for package in packages {
       println!("{} - {}", package.name, package.maintainer);
   }
   
   let mut infos = aur_rpc::info(["mediarepo"]).await.unwrap();
   let info = infos.pop().expect("package not found");
   println!("{}", info.metadata.popularity);
}

License

Apache 2.0


lib.rs:

aur-rpc

This crate offers abstractions over the rpcs provided by the Arch Linux User Repository (AUR).

Usage

#[tokio::main]
pub async fn main() {
    let packages = aur_rpc::search("yay").await.unwrap();

    for package in packages {
        println!("{} - {:?}", package.name, package.maintainer);
    }
    
    let mut infos = aur_rpc::info(["mediarepo"]).await.unwrap();
    let info = infos.pop().expect("package not found");
    println!("{}", info.metadata.popularity);
}

Dependencies

~4–18MB
~258K SLoC