Expand description
§PacmanConf
pacmanconf is a simple parser for pacman config files.
use pacmanconf::Config;
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);
}
Structs§
- Config
- A pacman config.
- Error
- The error type for pacman.conf parsing.
- Error
Line - Error Line holds a line of text and the line number the line is from.
- Options
- The options struct allows you to change settings prior to building.
- Repository
- A Pacman repository.
Enums§
- Error
Kind - A list of possible errors that may occur when parsing a pacman.conf