Files
craft-libs/crates/settings/Cargo.toml
T
Dylan M. Taylor 98d01dfc3f fw-services: resolve the sync of origin/next into pdf-port/gaps
platform (appearance, portal, clipboard, open), settings, host files, dialogs
service, print, i18n date. Settings take upstream's LocalStorageFiles, with
BrowserFiles a deprecated alias (L-313); Windows reduced motion is upstream's
native worker; the port's forced pick answers, write intent, GNOME text scale,
open-for and byte intake stay on upstream's code.
2026-11-22 22:57:38 -05:00

43 lines
1.3 KiB
TOML

[package]
autotests = false
name = "craft-settings"
version.workspace = true
edition.workspace = true
license.workspace = true
rust-version.workspace = true
repository.workspace = true
description = "Shared settings storage for the Craft suite: platform folders, config.toml, atomic saves, recovery and migration"
[lints]
workspace = true
[features]
# The in-memory `SettingsFiles` for tests in other crates (`craft_settings::testing`).
testing = []
[dependencies]
craft-atomic = { workspace = true }
craft-host = { workspace = true }
log = { workspace = true }
serde = { version = "1", features = ["derive"] }
serde_json = { workspace = true }
toml = { version = "1.1", default-features = false, features = ["std", "parse", "serde"] }
toml_edit = { version = "0.25", features = ["serde"] }
web-time = "1.1"
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
dirs = "7"
# `LocalStorageFiles`: the browser's localStorage.
[target.'cfg(target_arch = "wasm32")'.dependencies]
web-sys = { version = "0.3", features = ["Storage", "Window"] }
[dev-dependencies]
craft-settings = { path = ".", features = ["testing"] }
[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies]
tempfile = "3"
[target.'cfg(target_arch = "wasm32")'.dev-dependencies]
wasm-bindgen-test = "0.3"