Crates.io | aur-rpc |
lib.rs | aur-rpc |
version | 0.2.2 |
source | src |
created_at | 2022-07-24 10:25:04.867831 |
updated_at | 2022-11-05 10:53:00.790716 |
description | An async wrapper for aur RPC calls |
homepage | |
repository | https://github.com/trivernis/aur-rpc |
max_upload_size | |
id | 631916 |
size | 22,362 |
This crate is an async wrapper for calls to the Arch Linx User Repository.
#[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);
}
Apache 2.0