mirror of
https://github.com/storytold/lightcraft.git
synced 2026-10-14 19:27:01 -04:00
Resolve the docs/parity.md conflict, keep the HEIC rows. `cargo xtask ci` gets a heif step (clippy + tests for lightcraft-codecs with --features heif), since the workspace build leaves the feature off. The Cargo.toml comments no longer say official builds enable it; the web one notes that wasm32 aborts on panic. Co-Authored-By: Claude Opus 5.5 <[email protected]>
80 lines
2.1 KiB
TOML
80 lines
2.1 KiB
TOML
[package]
|
|
name = "lightcraft-web"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
publish = false
|
|
description = "LightCraft in the browser: the egui UI compiled to WASM (build with `cargo xtask web`)"
|
|
|
|
[lints]
|
|
workspace = true
|
|
|
|
[lib]
|
|
crate-type = ["cdylib", "rlib"]
|
|
|
|
[dependencies]
|
|
lightcraft-engine = { workspace = true }
|
|
lightcraft-ui-egui = { workspace = true }
|
|
lightcraft-codecs = { workspace = true }
|
|
lightcraft-raster = { workspace = true }
|
|
lightcraft-preview = { workspace = true }
|
|
serde = { workspace = true }
|
|
serde_json = { workspace = true }
|
|
log = { workspace = true }
|
|
crc32fast = { workspace = true }
|
|
|
|
[target.'cfg(target_arch = "wasm32")'.dependencies]
|
|
eframe = { workspace = true, features = ["default_fonts", "glow"] }
|
|
egui = { workspace = true }
|
|
wasm-bindgen = { workspace = true }
|
|
wasm-bindgen-futures = { workspace = true }
|
|
js-sys = { workspace = true }
|
|
web-sys = { workspace = true, features = [
|
|
"Blob",
|
|
"BlobPropertyBag",
|
|
"DedicatedWorkerGlobalScope",
|
|
"Document",
|
|
"DomStringList",
|
|
"Element",
|
|
"EventTarget",
|
|
"File",
|
|
"FileList",
|
|
"FileSystemCreateWritableOptions",
|
|
"FileSystemDirectoryHandle",
|
|
"FileSystemFileHandle",
|
|
"FileSystemGetDirectoryOptions",
|
|
"FileSystemGetFileOptions",
|
|
"FileSystemRemoveOptions",
|
|
"FileSystemWritableFileStream",
|
|
"HtmlAnchorElement",
|
|
"HtmlCanvasElement",
|
|
"HtmlElement",
|
|
"HtmlInputElement",
|
|
"IdbDatabase",
|
|
"IdbFactory",
|
|
"IdbKeyRange",
|
|
"IdbObjectStore",
|
|
"IdbOpenDbRequest",
|
|
"IdbRequest",
|
|
"IdbTransaction",
|
|
"IdbTransactionMode",
|
|
"IdbVersionChangeEvent",
|
|
"Location",
|
|
"MessageEvent",
|
|
"Navigator",
|
|
"Performance",
|
|
"StorageManager",
|
|
"Url",
|
|
"Window",
|
|
"Worker",
|
|
"WorkerOptions",
|
|
"WorkerType",
|
|
"WritableStream",
|
|
] }
|
|
|
|
[features]
|
|
# Open HEIC/HEIF photos (the optional lightcraft-heif crate). Not default so distributors choose
|
|
# it (HEVC patents); build with `--features heif` to include it. On wasm32 panics abort, so
|
|
# heic-rs's `catch_unwind` guard does not apply there.
|
|
heif = ["lightcraft-codecs/heif"]
|