aur-rpc

Crates.ioaur-rpc
lib.rsaur-rpc
version0.2.2
sourcesrc
created_at2022-07-24 10:25:04.867831
updated_at2022-11-05 10:53:00.790716
descriptionAn async wrapper for aur RPC calls
homepage
repositoryhttps://github.com/trivernis/aur-rpc
max_upload_size
id631916
size22,362
Julius Riegel (Trivernis)

documentation

README

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

Commit count: 19

cargo fmt