#cluster #hpc #hostlist #pdsh

hostlist-parser

Parses hostlist expressions into a Vec of Strings

6 releases

0.1.6 Feb 19, 2024
0.1.5 Apr 3, 2023
0.1.4 Feb 3, 2022
0.1.3 May 13, 2020
0.1.0 Oct 19, 2019

#292 in Algorithms

Download history 2077/week @ 2024-01-25 2166/week @ 2024-02-01 2002/week @ 2024-02-08 2717/week @ 2024-02-15 1180/week @ 2024-02-22 1387/week @ 2024-02-29 1979/week @ 2024-03-07 1463/week @ 2024-03-14 1143/week @ 2024-03-21 2028/week @ 2024-03-28 2620/week @ 2024-04-04 2728/week @ 2024-04-11 2031/week @ 2024-04-18 1581/week @ 2024-04-25 1659/week @ 2024-05-02 1856/week @ 2024-05-09

7,612 downloads per month

MIT license

21KB
494 lines

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.

Dependencies

~1.5MB
~25K SLoC