mirror of
https://github.com/storytold/deckcraft.git
synced 2026-11-17 15:44:44 +00:00
* Native format: golden package bytes and load results before the move to craft-libs A deck that reaches every kind of member (stored and deflated media, linked media without bytes, stored and deflated chart parts, a NaN) is saved with a fixed generator. Its bytes, the presentation and media loaded from them, and the damage report for a copy missing two members are golden files written by the current code. `save_as` names the generator so the bytes don't change with the version. * Native format: the .deckcraft package layer comes from craft-deckcraft-format The mimetype and legacy type, sniffing, the presentation.json envelope, the NaN-safe writer (finite.rs, deleted), the null-number manifest reader, member names, the stored-or-deflated choice, bounded and budget-charged member reads and the format limits now come from craft-deckcraft-format (storytold/craft-libs#1748), pinned at its PR tip. The presentation mapping stays here: which media and chart parts become members, the load loop over them, repair and sanitising, and outline/RTF. The golden tests from the previous commit pass unchanged: the saved bytes, the loaded presentation and the damage report are the same. The crate no longer depends on serde, serde_json or thiserror; zip is a test dependency. Part of storytold/craft-libs#778. * ATTRIBUTION: the native format golden deck * Native format: pin craft-deckcraft-format to the craft-libs merge commit 254e9a40 (storytold/craft-libs#1748)
19 lines
476 B
TOML
19 lines
476 B
TOML
[package]
|
|
name = "deckcraft-format"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
description = "DeckCraft native file format (.deckcraft: zip of a JSON manifest plus media) and outline text import/export"
|
|
|
|
[lints]
|
|
workspace = true
|
|
|
|
[dependencies]
|
|
craft-deckcraft-format = { workspace = true }
|
|
craft-rtf = { workspace = true }
|
|
deckcraft-model = { workspace = true }
|
|
|
|
[dev-dependencies]
|
|
serde_json = { workspace = true }
|
|
zip = { workspace = true }
|