- build: fail on unreadable folders/entries (only a missing pending/ is empty);
detect a step by its declaration, not a substring
- container: commit part state only after the write; honour cancellation
before each part and between pieces of a long one; count written parts in
room(); bound the initial read to the approved length; enforce per-part
limits when reading; check both thumbnail part limits before writing
- lib: crate-root deny lints; parse the legacy prefix on its own
- newer: retained container.json needs a container; index list anchors;
report a retained field an edit replaced
- Archive::open() instead of ZipArchive constructor
- Writer::add(name, data, compression) instead of start_file+write_all
- Archive::entry_name() for name iteration (no file_names iterator)
- Archive::contains(), declared_size(), read(name, max) for entry access
- Reader no longer generic over Read+Seek; reads all bytes into memory
(needed because Archive<'a> borrows 'static bytes)
- Thumbnail::read no longer generic
Port from solidcraft: versioned JSON file format system with:
- Format families with hand-written upgrade steps and folded formats
- Pending changes that auto-number on release
- Container format: content-addressed blobs (SHA-256) in ZIP packages
- Newer file handling: read what you can, keep the rest
No external dependencies beyond serde_json and craft-zip.
Hostile-input bounded reading: sizes, counts, nesting capped.