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
169 downloads per month
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