#hpc #cluster #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

#50 in #hpc

Download history 9832/week @ 2026-02-20 11284/week @ 2026-02-27 8441/week @ 2026-03-06 11418/week @ 2026-03-13 10717/week @ 2026-03-20 9414/week @ 2026-03-27 7552/week @ 2026-04-03 7546/week @ 2026-04-10 5967/week @ 2026-04-17 7587/week @ 2026-04-24 11266/week @ 2026-05-01 14126/week @ 2026-05-08 11873/week @ 2026-05-15 9258/week @ 2026-05-22 11359/week @ 2026-05-29 11459/week @ 2026-06-05

46,945 downloads per month
Used in 3 crates

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
~23K SLoC