54 lines
1.9 KiB
TOML
54 lines
1.9 KiB
TOML
[package]
|
|
authors = ["Warp Team <dev@warp.dev>"]
|
|
edition = "2021"
|
|
name = "galaxyui_extras"
|
|
version = "0.0.0"
|
|
publish.workspace = true
|
|
license.workspace = true
|
|
|
|
[features]
|
|
default = ["secure_storage", "user_preferences", "user_preferences-file"]
|
|
secure_storage = ["dep:security-framework", "dep:secret-service", "dep:ouroboros"]
|
|
test-util = []
|
|
user_preferences = ["dep:objc2", "dep:objc2-foundation", "dep:gloo-storage"]
|
|
user_preferences-file = ["user_preferences", "dep:serde", "dep:serde_json"]
|
|
user_preferences-toml = ["user_preferences", "dep:serde", "dep:serde_json", "dep:toml_edit"]
|
|
|
|
[dependencies]
|
|
anyhow.workspace = true
|
|
log.workspace = true
|
|
async-channel.workspace = true
|
|
serde = { workspace = true, optional = true }
|
|
serde_json = { workspace = true, optional = true }
|
|
sha2.workspace = true
|
|
toml_edit = { workspace = true, optional = true }
|
|
thiserror.workspace = true
|
|
galaxyui_core.workspace = true
|
|
|
|
[dev-dependencies]
|
|
# Enable the `test-util` feature for our own package when running tests.
|
|
galaxyui_extras = { path = ".", features = ["test-util"] }
|
|
tempfile.workspace = true
|
|
|
|
[target.'cfg(target_os = "macos")'.dependencies]
|
|
objc2 = { workspace = true, optional = true }
|
|
objc2-foundation = { workspace = true, optional = true, features = [
|
|
"NSString",
|
|
"NSUserDefaults",
|
|
] }
|
|
security-framework = { version = "2.0.0", optional = true }
|
|
|
|
[target.'cfg(any(target_os = "linux", target_os = "freebsd"))'.dependencies]
|
|
ouroboros = { version = "0.18", optional = true }
|
|
rand = "0.8.5"
|
|
ring = "0.17.13"
|
|
secret-service = {version = "5.0.0", features = ["rt-async-io-crypto-rust"], optional = true}
|
|
|
|
[target.'cfg(target_family = "wasm")'.dependencies]
|
|
gloo-storage = { version = "0.3.0", optional = true }
|
|
|
|
[target.'cfg(target_os = "windows")'.dependencies]
|
|
windows = { workspace = true, features = ["Win32_Security_Cryptography", "Win32_UI_Shell"] }
|
|
windows-registry = { workspace = true }
|
|
windows-result = { workspace = true }
|