mirror of
https://github.com/storytold/photocraft.git
synced 2026-11-26 13:18:46 +00:00
craft-cms was extracted from crates/cms (storytold/craft-libs#779), and both copies changed afterwards. storytold/craft-libs#PRNUM ports the 41 commits made here since the extraction, so the shared crate now has everything this copy had, and PhotoCraft depends on it. craft-cms returns errors where the local crate panicked on caller input: transforms, tables and LUT constructors return Result. Call sites propagate the error where the function already returns one, and fall back where the arguments are fixed by construction (each with a comment saying why). Lut3d's fields are private there; the proof and HDR display table is built with Lut3d::from_fn. The pin is the head of the craft-libs branch and moves to main when that pull request merges.
45 lines
1.3 KiB
TOML
45 lines
1.3 KiB
TOML
[package]
|
|
name = "photocraft-gpu"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
|
|
[features]
|
|
default = []
|
|
vulkan = ["wgpu/vulkan"]
|
|
metal = ["wgpu/metal"]
|
|
dx12 = ["wgpu/dx12"]
|
|
gles = ["wgpu/gles"]
|
|
native = ["vulkan", "metal", "dx12", "gles"]
|
|
|
|
[lints]
|
|
workspace = true
|
|
|
|
[dependencies]
|
|
half = "2"
|
|
thiserror = { workspace = true }
|
|
photocraft-geom = { workspace = true }
|
|
photocraft-color = { workspace = true }
|
|
photocraft-raster = { workspace = true }
|
|
photocraft-doc = { workspace = true }
|
|
photocraft-compose = { workspace = true }
|
|
# Camera Raw's per-pixel stages (`camera_raw.rs`) take their constants from the CPU develop.
|
|
photocraft-algo = { workspace = true }
|
|
bytemuck = { workspace = true }
|
|
# Same major version as eframe's wgpu so the app's device can be shared.
|
|
wgpu = { version = "30", default-features = false, features = ["std", "wgsl"] }
|
|
log = { workspace = true }
|
|
|
|
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
|
|
# Effect distance fields are computed in parallel bands.
|
|
rayon = { workspace = true }
|
|
pollster = "1"
|
|
|
|
[dev-dependencies]
|
|
wgpu = { version = "30" }
|
|
pollster = "1"
|
|
# Shape layers in the effect parity tests.
|
|
photocraft-vector = { workspace = true }
|
|
# A document-tagged CMYK profile in the tile conversion test.
|
|
craft-cms = { workspace = true }
|