pom-parser 0.1.0

Parser for the POM configuration language
Documentation
  • Coverage
  • 98.04%
    50 out of 51 items documented1 out of 33 items with examples
  • Size
  • Source code size: 41.3 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 6.85 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 19s Average build duration of successful builds.
  • all releases: 19s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • Repository
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • pommicket

pom-rs

Rust parser for POM configuration language

Basic usage

use pom_parser::Configuration;
let conf = Configuration::load_path("examples/conf.pom").expect("bad configuration");
let indentation_type = conf.get("indentation-type");
match indentation_type {
	Some(t) => println!("indenting with {t}!"),
	None => println!("no indentation type set!"),
}
let tab_size = conf.get_int_or_default("tab-size", 4)
	.expect("invalid number for tab-size!");
println!("tab size: {tab_size}");

See examples/ for more examples.

License

Permission to use, copy, modify, and/or distribute this software for
any purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED “AS IS” AND THE AUTHOR DISCLAIMS ALL
WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE
FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY
DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN
AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.