6 releases

0.2.2 Feb 24, 2025
0.2.0 Feb 1, 2022
0.1.4 May 8, 2021
0.1.2 Jul 15, 2019
0.1.1 Feb 15, 2019

#410 in Filesystem

Download history 3/week @ 2025-01-20 20/week @ 2025-01-27 13/week @ 2025-02-03 97/week @ 2025-02-10 16/week @ 2025-02-17 147/week @ 2025-02-24 43/week @ 2025-03-03 27/week @ 2025-03-10 100/week @ 2025-03-17 344/week @ 2025-03-24 1016/week @ 2025-03-31 663/week @ 2025-04-07 861/week @ 2025-04-14 1044/week @ 2025-04-21 2933/week @ 2025-04-28

5,622 downloads per month

MIT/Apache

7KB
88 lines

hrx-get

The Human Readable Achive format specification lives at https://github.com/google/hrx.

This crate only supports reading .hrx data.


lib.rs:

Implement simple reading of Human Readable Archive (.hrx) data.

The Human Readable Achive format specification lives at https://github.com/google/hrx.

This crate only supports reading .hrx data.

Example

let archive = hrx_get::Archive::parse(
    "<===> one.txt\n\
     Content of one text file\n\
     <===>\n\
     This is a comment\n\
     <===> subdir/file.txt\n\
     Contents of a file in a subdir.\n\
     <===>\n"
)?;
assert_eq!(archive.get("one.txt"), Some("Content of one text file"));

No runtime deps