#human-readable #human #readable #archive #data #reader

hrx-get

Reader for Human Readable Archive (.hrx) data

5 releases

0.2.0 Feb 1, 2022
0.1.4 May 8, 2021
0.1.2 Jul 15, 2019
0.1.1 Feb 15, 2019
0.1.0 Feb 15, 2019

#1437 in Filesystem

Download history 7/week @ 2024-03-07 1/week @ 2024-03-14 20/week @ 2024-03-28 11/week @ 2024-04-04 3/week @ 2024-04-18 243/week @ 2024-04-25 128/week @ 2024-05-02 97/week @ 2024-05-09 218/week @ 2024-05-16

101 downloads per month

MIT/Apache

6KB
89 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 = 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