Repository navigation
This release catches up on things I've wanted to do for a long time: port the Yaz0 features to pure Rust, add zero copy parsers for AAMP and BYML, and properly support no_std (specifically working on target aarch64-nintendo-switch-freestanding for Switch support). Along the way, several other things have been improved.
This update was largely constructed with AI agents. Since I built roead originally by hand and had a strong notion of exactly what I wanted to do with this release and how it should work, plus I already had pretty good tests in place, I think it can be trusted. If you disagree, feel free to stick with v1.0, which was still perfectly good. But you'll be missing out on some massive performance benefits. The new zero copy readers and the new Yaz0 implementation are both quite speedy.
Added
- Zero-copy,
no_std-compatible borrowed readers for AAMP and BYML - SARC now accepts owned
Vec<u8>andCow<[u8]>input withalloc, including automatic Yaz0 decompression withalloc + yaz0, even inno_std - AAMP name algorithm rewritten to be much, much faster
NameTable::get_nameanditer_by_namenow returnNameRef
Changed
- Updated to edition 2024 and MSRV 1.88
- Ported
yaz0from C++ to Rust - Migrated YAML parsing and emission to the native Rust
ryml0.4 crate, eliminating the C++/cxxbuild requirement. Some tiny changes come with this to string quoting. - Split core,
alloc, andstdfeature levels. Owned BYML construction macros and string indexing are available inno_std + allocconfigurations - Owned BYML maps now use
hashbrown::HashMapwithFxBuildHasher - The SARC writer now compiles resource factory and AGL tables into binary instead of parsing them at runtime
Removed
- Removed the
serde_json,num-integer, andparking_lotdependencies
Fixed
- Fixed the BYML
array!(value; count)macro to repeatvaluecounttimes - Fixed AAMP
BufferF32element counts to read fromdata_offset - 4, matching the writer and other numeric buffer types - Improved validation of binary bounds, offsets, UTF-8, recursion depth, and truncated data
- Made
FixedSafeStringoperations preserve UTF-8 safely - Fixed SARC alignment requirements being overwritten by the default requirements every time an archive is written
- Prevented AAMP parameter-data deduplication from mixing buffers and inline values with incompatible on-disk shapes
- Guaranteed the 128-byte C layout of
Curvevalues - SARC file equality now compares only the file entry, not its entire backing archive