#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

#297 in Algorithms

Download history 522/week @ 2023-12-23 769/week @ 2023-12-30 1485/week @ 2024-01-06 1682/week @ 2024-01-13 1839/week @ 2024-01-20 1838/week @ 2024-01-27 2314/week @ 2024-02-03 2365/week @ 2024-02-10 2013/week @ 2024-02-17 1179/week @ 2024-02-24 1377/week @ 2024-03-02 2049/week @ 2024-03-09 1167/week @ 2024-03-16 1615/week @ 2024-03-23 2447/week @ 2024-03-30 1826/week @ 2024-04-06

7,256 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

~1MB
~24K SLoC