Macbinary-rs
This crate aims to provide transparent access to macbinary files following the documentation at https://github.com/mietek/theunarchiver/wiki/MacBinarySpecs
Usage
The intended usage is as follows
Identifying MacBinary files
use ;
match probe_file
Opening a file
use Fork;
match open_file
If file is not a macbinary, it will return sensible defaults for all fields, provide a transparent reader for the data fork and an empty reader for the resource fork.
Limitations
At the moment the crate does not actually try to locate the resource fork if the opened file is not MacBinary encoded.
Checksum verification is not implemented.