Crate hrx_get

Source
Expand description

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"));

Structs§

Archive
Parsed Human Readable Archive data.

Enums§

Error
An error parsing a .hrx archive.
FileError
An error reading or parsing a .hrx archive.