9 releases (4 stable)
3.0.0 | Aug 28, 2024 |
---|---|
2.1.0 | Mar 7, 2024 |
2.0.0 | Feb 16, 2022 |
1.0.0 | Apr 23, 2021 |
0.1.0 | Mar 9, 2019 |
#264 in Parser implementations
21,308 downloads per month
Used in 13 crates
(10 directly)
36KB
675 lines
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);
}