mirror of
https://github.com/storytold/photocraft.git
synced 2026-12-02 06:20:48 +01:00
41 lines
1.5 KiB
TOML
41 lines
1.5 KiB
TOML
[package]
|
|
name = "photocraft-raster"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
|
|
[lints]
|
|
workspace = true
|
|
|
|
[dependencies]
|
|
photocraft-geom = { workspace = true }
|
|
photocraft-color = { workspace = true }
|
|
serde = { workspace = true }
|
|
# Plain data (the engine holds documents in a `Tracked`): the marker and its derive, without the UI.
|
|
craft-tracked = { workspace = true }
|
|
craft-ui-macros = { workspace = true }
|
|
crc32fast = "1"
|
|
lz4_flex = { version = "0.11", default-features = false, features = ["std", "safe-encode", "safe-decode"] }
|
|
|
|
# Native only: converting a region's tiles is independent per tile, so it runs on all cores;
|
|
# sysinfo reads the physical RAM size for the memory limit.
|
|
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
|
|
rayon = { workspace = true }
|
|
sysinfo = { version = "=0.40.1", default-features = false, features = ["system"] }
|
|
|
|
# macOS reports capacity including purgeable space only through sysinfo's volume properties.
|
|
[target.'cfg(target_os = "macos")'.dependencies]
|
|
sysinfo = { version = "=0.40.1", default-features = false, features = ["system", "disk"] }
|
|
|
|
# statvfs on the scratch directory.
|
|
[target.'cfg(unix)'.dependencies]
|
|
rustix = { version = "1.1", default-features = false, features = ["std", "fs"] }
|
|
|
|
# Available physical memory and commit headroom (memory/system.rs) through winsafe's safe
|
|
# `GlobalMemoryStatusEx` wrapper.
|
|
[target.'cfg(windows)'.dependencies]
|
|
winsafe = { version = "=0.0.29", default-features = false, features = ["kernel"] }
|
|
|
|
[dev-dependencies]
|
|
proptest = { workspace = true }
|