mirror of
https://github.com/storytold/lightcraft.git
synced 2026-10-25 02:30:15 -06:00
- new crate lightcraft-preview (L3): 128-bit content hashing (SipHash-1-3), cost-bounded Lru, DiskCache (JPEG q90 files keyed by content hash + settings hash + size + RENDER_CACHE_VERSION; temp+rename writes; LRU prune by mtime to 80% of budget; corrupt files dropped), PreviewCache (memory LRU over disk), JobPool (per-slot dedupe, priorities, reprioritize/drop, inline mode for wasm). - engine: Session::thumb_job buckets thumbnails to 128/256/384/512 and serves them from the cache without decoding the source; decoded thumbnail sources now in a 384 MB LRU (was unbounded); library attaches <library>/thumbs; library.info cache stats; library.clearPreviews. - ui-egui: Renderer runs on JobPool; thumbnails scrolled out of the prefetch area are dropped from the queue; on-screen thumbnails get re-prioritized; ui.inspect reports in-flight renders + thumb textures. - Demo library (24 photos): grid fully drawn 4.4 s cold -> 0.21 s warm (24/24 disk hits, no source decoded). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
90 lines
2.5 KiB
TOML
90 lines
2.5 KiB
TOML
[workspace]
|
|
resolver = "3"
|
|
members = ["crates/*", "apps/*", "xtask"]
|
|
|
|
[workspace.package]
|
|
version = "0.1.0"
|
|
edition = "2024"
|
|
license = "MIT OR Apache-2.0"
|
|
rust-version = "1.90"
|
|
repository = "https://github.com/storytold/lightcraft"
|
|
|
|
[workspace.dependencies]
|
|
# internal
|
|
lightcraft-geom = { path = "crates/geom" }
|
|
lightcraft-color = { path = "crates/color" }
|
|
lightcraft-raster = { path = "crates/raster" }
|
|
lightcraft-tiff = { path = "crates/tiff" }
|
|
lightcraft-raw = { path = "crates/raw" }
|
|
lightcraft-codecs = { path = "crates/codecs" }
|
|
lightcraft-meta = { path = "crates/meta" }
|
|
lightcraft-develop = { path = "crates/develop" }
|
|
lightcraft-scenes = { path = "crates/scenes" }
|
|
lightcraft-pipeline = { path = "crates/pipeline" }
|
|
lightcraft-catalog = { path = "crates/catalog" }
|
|
lightcraft-preview = { path = "crates/preview" }
|
|
lightcraft-engine = { path = "crates/engine" }
|
|
lightcraft-ui-egui = { path = "crates/ui-egui" }
|
|
lightcraft-mcp = { path = "crates/mcp" }
|
|
|
|
# foundation
|
|
thiserror = "2"
|
|
serde = { version = "1", features = ["derive", "rc"] }
|
|
serde_json = { version = "1", features = ["float_roundtrip"] }
|
|
log = "0.4"
|
|
rayon = "1"
|
|
proptest = "1"
|
|
bytemuck = { version = "1", features = ["derive"] }
|
|
crc32fast = "1"
|
|
siphasher = "1"
|
|
|
|
# formats
|
|
quick-xml = "0.38"
|
|
miniz_oxide = "0.8"
|
|
|
|
# codecs
|
|
image = { version = "0.25", default-features = false, features = ["png", "jpeg", "tiff", "webp"] }
|
|
zune-jpeg = { version = "0.5", default-features = false, features = ["std", "x86", "neon"] }
|
|
zune-core = { version = "0.5", default-features = false, features = ["std"] }
|
|
jpeg-decoder = { version = "0.3", default-features = false }
|
|
jpeg-encoder = { version = "0.7", default-features = false, features = ["std"] }
|
|
png = "0.18"
|
|
tiff = "0.11"
|
|
image-webp = "0.2"
|
|
moxcms = { version = "0.9", default-features = false, features = ["lut"] }
|
|
jxl-oxide = { version = "0.12", default-features = false }
|
|
ravif = { version = "0.13", default-features = false }
|
|
|
|
# ui
|
|
egui = "0.36"
|
|
egui_extras = { version = "0.36", default-features = false }
|
|
eframe = { version = "0.36", default-features = false }
|
|
egui_kittest = "0.36"
|
|
rfd = "0.17"
|
|
|
|
[workspace.lints.rust]
|
|
unsafe_code = "deny"
|
|
|
|
[workspace.lints.clippy]
|
|
dbg_macro = "warn"
|
|
todo = "warn"
|
|
too_many_arguments = "allow"
|
|
needless_range_loop = "allow"
|
|
type_complexity = "allow"
|
|
excessive_precision = "allow"
|
|
|
|
[profile.dev.package."*"]
|
|
opt-level = 2
|
|
|
|
[profile.dev]
|
|
opt-level = 1
|
|
|
|
[profile.release]
|
|
debug = "line-tables-only"
|
|
|
|
[profile.dist]
|
|
inherits = "release"
|
|
lto = "thin"
|
|
codegen-units = 1
|
|
debug = false
|