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
//! # PacmanConf
//!
//! pacmanconf is a simple parser for pacman config files.
//!
//! ```
//! use pacmanconf::Config;
//!
//! # fn main() {
//! let config = Config::new().expect("failed to parse config");
//!
//! let config = Config::options()
//!     .root_dir("/chroot")
//!     .pacman_conf("tests/pacman.conf")
//!     .read()
//!     .expect("failed to parse config");
//!
//!     for repo in &config.repos {
//!         println!("{}", repo.name);
//!     }
//! # }
//! ```
//!
//! See [`Config`] and [`Options`] on how to use this library.

#![warn(missing_docs)]
mod error;
mod options;
mod pacmanconf;

pub use crate::error::*;
pub use crate::options::*;
pub use crate::pacmanconf::*;