#archive #human #reader #readable #data

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

#209 in Filesystem

Download history 20/week @ 2022-04-17 16/week @ 2022-04-24 55/week @ 2022-05-01 89/week @ 2022-05-08 95/week @ 2022-05-15 35/week @ 2022-05-22 45/week @ 2022-05-29 36/week @ 2022-06-05 24/week @ 2022-06-12 35/week @ 2022-06-19 19/week @ 2022-06-26 29/week @ 2022-07-03 7/week @ 2022-07-10 59/week @ 2022-07-17 41/week @ 2022-07-24 27/week @ 2022-07-31

134 downloads per month
Used in rsass

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

# use hrx_get::{Archive, Error};
# fn main() -> Result<(), Error> {
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"));
# Ok(())
# }

No runtime deps