hostlist-parser

Crates.iohostlist-parser
lib.rshostlist-parser
version0.1.6
sourcesrc
created_at2019-10-19 01:22:00.689455
updated_at2024-02-19 18:12:36.399885
descriptionParses hostlist expressions into a Vec of Strings
homepage
repositoryhttps://github.com/whamcloud/hostlist-parser
max_upload_size
id173903
size77,169
Joe Grund (jgrund)

documentation

README

hostlist-parser

Crates.io docs.rs

Parses hostlist expressions into a deduped Vec of Strings

This library implements hostlist parsing. It takes a hostlist expression and produces a Result of unique hostnames, or a parse error that can be introspected to see issues.

The fn to parse a hostlist is:

parse(input: &str,) -> Result<Vec<String>, combine::stream::easy::Errors<char, &str, usize>>

This parser can compile to native code and also with the wasm32-unknown-unknown target.

Commit count: 13

cargo fmt