mirror of https://github.com/Trivernis/aur-rpc.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
704 B
Rust
27 lines
704 B
Rust
//! # aur-rpc
|
|
//! This crate offers abstractions over the rpcs provided by the
|
|
//! Arch Linux User Repository (AUR).
|
|
//!
|
|
//! ## Retrieving user information
|
|
//! ```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);
|
|
//! }
|
|
//! ```
|
|
pub(crate) mod models;
|
|
mod rpcs;
|
|
pub use models::*;
|
|
pub use rpcs::*;
|
|
pub mod error;
|
|
#[cfg(test)]
|
|
pub mod tests;
|