1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
//! # raur //! //! raur is a library for interacting with the //! [aurweb RPC Interface](https://aur.archlinux.org/rpc). //! //! See also the [Arch wiki page](https://aur.archlinux.org/rpc.php) for more information. //! //! # Example //! //! ``` //! # fn main() -> Result<(), raur::Error> { //! // Use `search` to search using keywords (multiple strategies available) //! let pkgs = raur::search("pacman")?; //! assert!(pkgs.len() > 10); //! //! for pkg in pkgs { //! println!("{:<30}{}", pkg.name, pkg.version); //! } //! //! // Use `info` to get info about a list of packages. Not-found packages are silently ignored. //! let pkgs = raur::info(&["spotify", "discord-canary"])?; //! assert_eq!(pkgs.len(), 2); //! //! for pkg in pkgs { //! println!("{:<30}{}", pkg.name, pkg.version); //! } //! # Ok(()) //! # } //! ``` #[warn(missing_docs)] mod error; #[warn(missing_docs)] mod funcs; #[warn(missing_docs)] mod handle; #[warn(missing_docs)] mod raur; pub use crate::error::*; pub use crate::funcs::*; pub use crate::handle::*; pub use crate::raur::*;