Crate pacmanconf

source ·
Expand description


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()
    .expect("failed to parse config");

    for repo in &config.repos {

See Config and Options on how to use this library.


  • A pacman config.
  • The error type for pacman.conf parsing.
  • Error Line holds a line of text and the line number the line is from.
  • The options struct allows you to change settings prior to building.
  • A Pacman repository.


  • A list of possible errors that may occur when parsing a pacman.conf