#hpc #cluster #hostlist #pdsh

hostlist-parser

Parses hostlist expressions into a Vec of Strings

5 releases

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

#109 in Science

Download history 1266/week @ 2023-06-02 999/week @ 2023-06-09 1035/week @ 2023-06-16 1512/week @ 2023-06-23 746/week @ 2023-06-30 912/week @ 2023-07-07 1058/week @ 2023-07-14 1015/week @ 2023-07-21 1240/week @ 2023-07-28 1618/week @ 2023-08-04 997/week @ 2023-08-11 1344/week @ 2023-08-18 1199/week @ 2023-08-25 1004/week @ 2023-09-01 975/week @ 2023-09-08 901/week @ 2023-09-15

4,238 downloads per month

MIT license

19KB
484 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

~1MB
~23K SLoC