macbinary

Crates.iomacbinary
lib.rsmacbinary
version0.2.1
sourcesrc
created_at2023-03-22 08:16:44.851697
updated_at2023-05-30 07:33:24.372398
descriptionMacBinary and resource fork parser
homepagehttps://7bit.org/macbinary/
repositoryhttps://github.com/wezm/macbinary
max_upload_size
id816804
size84,581
Wesley Moore (wezm)

documentation

README

MacBinary for Rust

This crate provides utilities for reading MacBinary files and parsing resource forks commonly used on classic Mac OS.

Build Status Documentation Version License

Features

  • Parse Macbinary I, II, and III files
  • Extract individual resources by type and id from resource fork data
  • Iterate over all resources in resource fork
  • Cross-platform (does not rely on a Mac host)
  • Includes WebAssembly bindings. Used by my online MacBinary parser.
  • Supports no_std environments
  • All parsing is done without heap allocation

Building for WebAssembly

There is a Makefile that automates building for WebAssembly, it requires you have wasm-bindgen installed. Run make (or gmake on BSD) to build the artefacts. The output is put into a wasm directory.

License & Credits

Licensed under Apache License, Version 2.0 (LICENSE). The codebase incorporates binary parsing code from Allsorts and the NumFrom trait from ttf-parser.

Commit count: 24

cargo fmt