pacmanconf/
lib.rs

1//! # PacmanConf
2//!
3//! pacmanconf is a simple parser for pacman config files.
4//!
5//! ```
6//! use pacmanconf::Config;
7//!
8//! # fn main() {
9//! let config = Config::new().expect("failed to parse config");
10//!
11//! let config = Config::options()
12//!     .root_dir("/chroot")
13//!     .pacman_conf("tests/pacman.conf")
14//!     .read()
15//!     .expect("failed to parse config");
16//!
17//!     for repo in &config.repos {
18//!         println!("{}", repo.name);
19//!     }
20//! # }
21//! ```
22//!
23//! See [`Config`] and [`Options`] on how to use this library.
24
25#![warn(missing_docs)]
26mod error;
27mod options;
28mod pacmanconf;
29
30pub use crate::error::*;
31pub use crate::options::*;
32pub use crate::pacmanconf::*;