mirror of
https://github.com/storytold/photocraft.git
synced 2026-11-21 01:18:43 +00:00
Windows network folders reported unknown because sysinfo doesn't list them, and an unlisted Linux NFS or CIFS mount used the numbers of its listed parent. GetDiskFreeSpaceEx (Windows) and statvfs (Unix) on the directory fix both. macOS keeps sysinfo's figure, which counts purgeable space, when the listed disk is this volume. A mount that reports no space is flagged in Preferences, in the hard-limit refusal and in spill::stats, with a hint to set a Scratch Size Limit or use a local disk. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
38 lines
1.4 KiB
TOML
38 lines
1.4 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 }
|
|
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 }
|