#archive #reader #human-readable #data

hrx-get

Reader for Human Readable Archive (.hrx) data

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

#340 in Filesystem

Download history 1/week @ 2025-01-01 23/week @ 2025-01-22 53/week @ 2025-02-05 60/week @ 2025-02-12 125/week @ 2025-02-19 53/week @ 2025-02-26 34/week @ 2025-03-05 24/week @ 2025-03-12 126/week @ 2025-03-19 395/week @ 2025-03-26 1248/week @ 2025-04-02 496/week @ 2025-04-09

2,267 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