mirror of
https://github.com/storytold/AniCraft.git
synced 2026-11-25 12:00:50 +01:00
At review, the compound binary container moves to the shared craft-cfb reader from craft-libs (rev b67b9f9, the one craft-xfl and craft-xml already use). crates/fla's own MS-CFB reader is removed. The `cfb` module keeps only the importer's policy: the ADR 0054 caps (1 GiB per file, 256 MiB per stream), stream lookup by full path, and one-sentence errors. Chain walks, cycle guards and directory bounds are craft-cfb's. Container errors that named one structural fault each (bad header, truncated, looping chain or tree) are now `Damaged`, carrying craft-cfb's reason. craft-cfb is more tolerant in two places, and the tests now pin it: - a FAT count the file could hold but its DIFAT doesn't list opens; - a root that overstates its mini stream opens, read to the file's end at most. In both cases nothing past the file is reserved. The test of the removed reader's internal chain budget (`the_directory_reads_no_further_than_the_most_entries`) is dropped with the code it tested. Checked against the nine EDAP legacy files: the same streams, sizes and record tags in `fla-dump`, the same `info`, and byte-identical frame renders with the old and the new reader. The ADR is renumbered to 0120, reserved for this PR (0096 is the guide search ADR on main). Its references move with it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
39 lines
1.1 KiB
TOML
39 lines
1.1 KiB
TOML
[package]
|
|
name = "anicraft-cli"
|
|
description = "AniCraft L4: headless CLI, MCP server and the desktop app's live control channel"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
publish.workspace = true
|
|
repository.workspace = true
|
|
|
|
[[bin]]
|
|
name = "anicraft-cli"
|
|
path = "src/main.rs"
|
|
|
|
[lib]
|
|
path = "src/lib.rs"
|
|
|
|
[dependencies]
|
|
anicraft-doc.workspace = true
|
|
anicraft-engine.workspace = true
|
|
anicraft-render.workspace = true
|
|
anicraft-geom.workspace = true
|
|
anicraft-guide.workspace = true
|
|
# The legacy Flash container, for `fla-dump` (ADR 0120).
|
|
anicraft-fla.workspace = true
|
|
serde_json.workspace = true
|
|
|
|
# The live control port's per-run token (ADR 0104): the operating system's random numbers.
|
|
# MIT OR Apache-2.0, already in the tree. Not for the web: a page has no sockets, so the control
|
|
# port (and `mcp --bridge`) is left out of wasm32 builds.
|
|
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
|
|
getrandom = "0.3"
|
|
|
|
[dev-dependencies]
|
|
# Exporter plug-in fixtures written in WebAssembly text (Apache-2.0 WITH LLVM-exception).
|
|
wat = "1.228"
|
|
|
|
[lints]
|
|
workspace = true
|