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

#1035 in Unix APIs

Download history 6/week @ 2024-04-14 8/week @ 2024-04-21 21/week @ 2024-04-28 5/week @ 2024-05-05 7/week @ 2024-05-12 9/week @ 2024-05-19 14/week @ 2024-05-26 16/week @ 2024-06-02 14/week @ 2024-06-09 15/week @ 2024-06-16 8/week @ 2024-06-23 80/week @ 2024-07-07 36/week @ 2024-07-14 33/week @ 2024-07-21 20/week @ 2024-07-28

169 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–16MB
~235K SLoC