mirror of
https://github.com/storytold/lightcraft.git
synced 2026-11-21 18:03:34 +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.
72 lines
2.9 KiB
TOML
72 lines
2.9 KiB
TOML
[package]
|
||
name = "lightcraft-engine"
|
||
version.workspace = true
|
||
edition.workspace = true
|
||
license.workspace = true
|
||
description = "LightCraft engine: session, command registry, history, render jobs, view-models (L4)"
|
||
|
||
[lints]
|
||
workspace = true
|
||
|
||
[dependencies]
|
||
# Paths stored in a Lightroom catalog are followed only to local files or the catalog's share.
|
||
craft-docpath = { workspace = true }
|
||
lightcraft-geom = { workspace = true }
|
||
lightcraft-color = { workspace = true }
|
||
lightcraft-raster = { workspace = true }
|
||
lightcraft-develop = { workspace = true }
|
||
lightcraft-scenes = { workspace = true }
|
||
lightcraft-pipeline = { workspace = true }
|
||
lightcraft-gpu = { workspace = true }
|
||
lightcraft-catalog = { workspace = true }
|
||
web-time = { workspace = true }
|
||
lightcraft-preview = { workspace = true }
|
||
lightcraft-codecs = { workspace = true }
|
||
lightcraft-raw = { workspace = true }
|
||
lightcraft-denoise-core = { workspace = true }
|
||
lightcraft-denoise = { workspace = true, optional = true }
|
||
lightcraft-meta = { workspace = true }
|
||
lightcraft-lensdb = { workspace = true }
|
||
lightcraft-faces = { workspace = true }
|
||
miniz_oxide = { workspace = true }
|
||
# CRC-32 of a catalog unpacked from a Lightroom backup zip (lightroom_backup.rs).
|
||
crc32fast = { workspace = true }
|
||
lightcraft-merge = { workspace = true }
|
||
lightcraft-geocode = { workspace = true }
|
||
lightcraft-slideshow = { workspace = true }
|
||
rayon = { workspace = true }
|
||
serde = { workspace = true }
|
||
serde_json = { workspace = true }
|
||
thiserror = { workspace = true }
|
||
log = { workspace = true }
|
||
ab_glyph = { workspace = true }
|
||
# Apply the font’s vertical substitutions and origins to Japanese watermarks.
|
||
harfrust = { version = "0.13", default-features = false, features = ["std"] }
|
||
unicode-normalization = "0.1"
|
||
unicode-segmentation = "1.13"
|
||
lightcraft-segment = { workspace = true, optional = true }
|
||
|
||
# model downloads run natively only (the web build fetches no models)
|
||
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
|
||
lightcraft-fetch = { workspace = true }
|
||
# capture-time parsing for face recognition (native only)
|
||
chrono = { workspace = true }
|
||
# free space of the drive holding the preview cache (the low-disk alert; pure Rust: rustix / windows-sys)
|
||
fs4 = { workspace = true }
|
||
|
||
[features]
|
||
# AI masks with SAM 3 (Object / Describe). Off for the web and CLI builds.
|
||
sam = ["dep:lightcraft-segment"]
|
||
denoise = ["dep:lightcraft-denoise", "lightcraft-denoise/runtime", "lightcraft-gpu/denoise"]
|
||
rawnind-model = ["denoise", "lightcraft-denoise/rawnind-model", "lightcraft-denoise-core/rawnind-model"]
|
||
|
||
[dev-dependencies]
|
||
# tests record why they skip (`cargo xtask ci` lists the skips)
|
||
lightcraft-testkit = { workspace = true }
|
||
# HDR JPEG XL tests read the file's colour encoding
|
||
jxl-oxide = { workspace = true }
|
||
# Lossless synthetic HEIC files (the import test; decoded when the codecs' `heif` feature is on).
|
||
craft-heif = { workspace = true, features = ["testdata"] }
|
||
libc = { workspace = true }
|
||
craft-tiff = { workspace = true }
|