Files
craft-libs/crates/scraft-format
aiongg d402a1d71b Gate-sized cases for slow non-UI tests; full sizes and every case nightly
Boundary tests set by a production constant check a small limit through a
private seam that takes it (b64 decode, drawingml table normalize, openpgp
verify), with the real constant nightly; captions and jbig2 check their
full-size boundaries nightly. Sweeps run every divisor-th case at the gate
(develop balanced highlights and thin line, jpeg low-memory tokens, png
streamed rows, mxf extreme fields, pdf crypt proptests), the fax bomb guard
page is wider and shorter, the resample bound pulls a shorter block, the nef
measured frames are read through probe_info, and local tone compares 64 and
256 pixels.
2026-11-25 01:32:48 +00:00
..
2026-11-13 04:07:08 +00:00

craft-scraft-format

The native SoundCraft session document, .scraft JSON schema and typed reader/writer. Session and its nested types are the wire representation; the library checks format_version before parsing, deserializes the document directly (without building a serde_json::Value tree), then sanitizes and validates the resulting session. Session::to_json writes the same pretty JSON representation.

The crate retains SoundCraft's serialized enum names, defaults, compatibility behavior for older fields, 256 MiB session byte limit, character limits, and duplicate/exhausted ID checks. Its time fields use craft_time::soundcraft, the exact sample-index time API retained by craft-time. MIDI sequence values use craft-midi's serde representation.

The application still maps sessions to UI state, engine state, media paths and audio pools. The session schema and its format-specific parsing, writing, sanitization and validation live here.