mirror of
https://github.com/storytold/lightcraft.git
synced 2026-11-19 17:03:03 +01:00
Use craft-gainmap from craft-libs for gain map metadata and arithmetic * Use craft-heif from craft-libs; remove crates/heif lightcraft-heif moved to craft-libs unchanged as craft-heif (storytold/craft-libs#784), so PhotoCraft can share it. The layer table, the heif CI step and the change triggers drop the local crate; a workspace file change (which a craft-heif rev bump is) still runs the heif step. * Pin craft-heif to the merge of storytold/craft-libs#794 * docs: the HEIF rows point at craft-heif, not the removed crates/heif * Use craft-gainmap from craft-libs for gain map metadata and arithmetic crates/codecs/src/gainmap.rs keeps the JPEG layout (encode_jpeg, read_jpeg, is_gain_map_jpeg) and re-exports GainMapMeta, GainImage, GainMapOptions, ISO_URN, compute and apply from craft-gainmap, which is this file's metadata and arithmetic moved to craft-libs (storytold/craft-libs#904). The tests of the moved code went with it. * craft-heif's Options has a chroma field at this rev: keep the libheif upsampling LightCraft had * raw: count the chunks a TIFF declares from its offsets table craft-tiff builds at most one chunk descriptor per byte of file (craft-libs#827), so a grid of tiles sharing one payload lists fewer chunks than the image declares. Compare the offsets table, which is the source of truth, so such a file reaches the byte-accounting check and is refused for the data it actually holds.
43 lines
1.4 KiB
TOML
43 lines
1.4 KiB
TOML
[package]
|
|
name = "lightcraft-cli"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
publish = false
|
|
description = "LightCraft command-line tool: headless render, command listing and the MCP server"
|
|
|
|
[[bin]]
|
|
name = "lightcraft-cli"
|
|
path = "src/main.rs"
|
|
|
|
[lints]
|
|
workspace = true
|
|
|
|
[dependencies]
|
|
lightcraft-engine = { workspace = true }
|
|
lightcraft-denoise = { workspace = true }
|
|
lightcraft-sysmem = { workspace = true }
|
|
lightcraft-mcp = { workspace = true }
|
|
lightcraft-ui-egui = { workspace = true }
|
|
lightcraft-codecs = { workspace = true }
|
|
lightcraft-raster = { workspace = true }
|
|
lightcraft-merge = { workspace = true }
|
|
serde_json = { workspace = true }
|
|
dhat = { workspace = true, optional = true }
|
|
|
|
[dev-dependencies]
|
|
lightcraft-testkit = { workspace = true }
|
|
|
|
[features]
|
|
default = ["denoise"]
|
|
denoise = ["lightcraft-engine/denoise"]
|
|
rawnind-model = ["denoise", "lightcraft-engine/rawnind-model"]
|
|
# Heap profiling: `cargo run --release -p lightcraft-cli --features dhat-heap -- snapshot …` counts
|
|
# every allocation (live/peak bytes in `library.memory` / `ui.inspect`) and writes dhat-heap.json
|
|
# (open it in DHAT's viewer: allocation sites by bytes at the peak). Slows allocation-heavy work.
|
|
dhat-heap = ["dep:dhat"]
|
|
|
|
# Open HEIC/HEIF photos (the optional craft-heif crate). Not default so distributors choose
|
|
# it (HEVC patents); build with `--features heif` to include it.
|
|
heif = ["lightcraft-codecs/heif"]
|