libzetta 0.5.0

libzetta is a stable interface for programmatic administration of ZFS
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use crate::{
    parsers::{Rule, StdoutParser},
    pest::Parser,
    zpool::Zpool,
};

pub fn fuzzy_target_1(data: &[u8]) {
    if let Ok(s) = std::str::from_utf8(data) {
        let _: Vec<_> = StdoutParser::parse(Rule::zpools, s)
            .map(|pairs| pairs.map(Zpool::from_pest_pair).collect())
            .unwrap();
    }
}