#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

#775 in Parser implementations

Download history 3276/week @ 2024-12-09 2768/week @ 2024-12-16 1058/week @ 2024-12-23 979/week @ 2024-12-30 4206/week @ 2025-01-06 6049/week @ 2025-01-13 4704/week @ 2025-01-20 5115/week @ 2025-01-27 5227/week @ 2025-02-03 6448/week @ 2025-02-10 6529/week @ 2025-02-17 6050/week @ 2025-02-24 6356/week @ 2025-03-03 7414/week @ 2025-03-10 4958/week @ 2025-03-17 6750/week @ 2025-03-24

25,512 downloads per month
Used in ochami-rs

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