Add README

Signed-off-by: trivernis <trivernis@protonmail.com>
pull/2/head
trivernis 2 years ago
parent 949a82243b
commit 5187a40460
Signed by: Trivernis
GPG Key ID: DFFFCC2C7A02DB45

@ -0,0 +1,24 @@
# aur-rpc
This crate is an async wrapper for calls to the Arch Linx User Repository.
## Example
```rust
#[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
Loading…
Cancel
Save