#esp #serde #esm #ess #mw

nightly esl

A library for reading, writing and processing ESM/ESP/ESS files

18 releases (7 breaking)

0.7.0 Sep 16, 2020
0.5.0 Sep 6, 2020
0.4.0 Jun 23, 2020
0.3.1 Mar 26, 2020

#102 in #serde

Download history 27/week @ 2020-06-04 1/week @ 2020-06-11 29/week @ 2020-06-18 5/week @ 2020-06-25 28/week @ 2020-07-02 28/week @ 2020-07-09 2/week @ 2020-07-16 19/week @ 2020-07-23 1/week @ 2020-07-30 27/week @ 2020-08-06 31/week @ 2020-08-13 19/week @ 2020-08-20 20/week @ 2020-08-27 78/week @ 2020-09-03 20/week @ 2020-09-10 13/week @ 2020-09-17

96 downloads per month
Used in espa

MIT/Apache

325KB
8K SLoC

travis

esl

A library for reading, writing and processing ESM/ESP/ESS files.

fn main() {
    let input = std::fs::File::open(file.clone()).unwrap(); 
    let mut input = std::io::BufReader::new(input);
    let records = Records::new(CodePage::Russian, 0, &mut input);
    let records = records.map(|x| {
        match x {
            Ok(mut x) => {
                x.fit();
                x
            },
            Err(e) => panic!(format!("{}", e))
        }
    }).collect::<Vec<_>>();
    let output = std::fs::File::create(file + ".yaml").unwrap();
    serde_yaml::to_writer(std::io::BufWriter::new(output), &records).unwrap();
}

Dependencies

~5MB
~96K SLoC