cosmic-settings/cosmic-settings/Cargo.toml

144 lines
4.4 KiB
TOML
Raw Normal View History

[package]
name = "cosmic-settings"
version = "0.1.0"
edition = "2021"
license = "GPL-3.0-only"
[dependencies]
anyhow = "1.0"
as-result = "0.2.1"
2024-11-11 17:25:09 +01:00
ashpd = { version = "0.9", default-features = false, features = [
"tokio",
], optional = true }
2024-07-31 08:08:34 +02:00
async-channel = "2.3.1"
chrono = "0.4.38"
2024-09-20 20:37:14 +02:00
clap = { version = "4.5.17", features = ["derive"] }
2024-07-31 08:08:34 +02:00
color-eyre = "0.6.3"
cosmic-bg-config.workspace = true
cosmic-comp-config = { workspace = true, optional = true }
cosmic-config.workspace = true
cosmic-dbus-networkmanager = { git = "https://github.com/pop-os/dbus-settings-bindings", optional = true }
2024-10-17 19:09:58 -07:00
cosmic-idle-config.workspace = true
cosmic-panel-config = { workspace = true, optional = true }
cosmic-randr-shell.workspace = true
cosmic-randr = { workspace = true, optional = true }
cosmic-settings-config = { git = "https://github.com/pop-os/cosmic-settings-daemon", optional = true }
cosmic-settings-page = { path = "../page" }
cosmic-settings-system = { path = "../pages/system", optional = true }
cosmic-settings-wallpaper = { path = "../pages/wallpapers" }
derivative = "2.2.0"
derive_setters = "0.1.6"
2023-05-26 16:52:05 +02:00
dirs = "5.0.1"
2024-07-31 08:08:34 +02:00
downcast-rs = "1.2.1"
eyre = "0.6.12"
2024-09-20 20:37:14 +02:00
freedesktop-desktop-entry = "0.7.5"
2024-08-13 16:39:20 +02:00
futures = "0.3.30"
hostname-validator = "1.1.1"
hostname1-zbus = { git = "https://github.com/pop-os/dbus-settings-bindings", optional = true }
2024-08-21 03:07:16 +02:00
i18n-embed-fl = "0.9.1"
image = "0.25"
2024-09-20 20:37:14 +02:00
indexmap = "2.5.0"
2024-05-26 13:50:10 -04:00
itertools = "0.13.0"
2024-07-31 08:08:34 +02:00
itoa = "1.0.11"
libcosmic.workspace = true
2024-11-11 17:25:09 +01:00
locale1 = { git = "https://github.com/pop-os/dbus-settings-bindings", optional = true }
2024-11-22 00:42:00 +01:00
mime-apps = { package = "cosmic-mime-apps", git = "https://github.com/pop-os/cosmic-mime-apps", optional = true }
notify = "6.1.1"
2023-12-22 16:42:56 +01:00
once_cell = "1.19.0"
2024-08-21 03:07:16 +02:00
regex = "1.10.6"
ron = "0.8"
2024-07-31 08:08:34 +02:00
rust-embed = "8.5.0"
secure-string = "0.3.0"
2024-09-20 20:37:14 +02:00
serde = { version = "1.0.210", features = ["derive"] }
2024-08-21 03:07:16 +02:00
slab = "0.4.9"
2023-12-22 16:42:56 +01:00
slotmap = "1.0.7"
static_init = "1.0.3"
sunrise = "1.0.1"
2024-09-20 20:37:14 +02:00
tachyonix = "0.3.1"
timedate-zbus = { git = "https://github.com/pop-os/dbus-settings-bindings", optional = true }
tokio = { workspace = true, features = ["fs", "io-util", "sync"] }
2023-12-22 16:42:56 +01:00
tracing = "0.1.40"
tracing-subscriber = "0.3.18"
udev = { version = "0.9.0", optional = true }
upower_dbus = { git = "https://github.com/pop-os/dbus-settings-bindings", optional = true }
bluez-zbus = { git = "https://github.com/pop-os/dbus-settings-bindings", optional = true }
2024-07-31 08:08:34 +02:00
url = "2.5.2"
2024-08-21 03:07:16 +02:00
xkb-data = "0.2.1"
zbus = { version = "4.4.0", features = ["tokio"], optional = true }
ustr = "1.0.0"
fontdb = "0.16.2"
2024-11-11 17:25:09 +01:00
fixed_decimal = "0.5.6"
2024-11-22 00:42:00 +01:00
mime = "0.3.17"
2024-08-13 16:39:20 +02:00
[dependencies.cosmic-settings-subscriptions]
git = "https://github.com/pop-os/cosmic-settings-subscriptions"
#TODO: only select features as needed
features = ["network_manager", "pipewire", "pulse"]
optional = true
2024-08-13 16:39:20 +02:00
[dependencies.icu]
2024-08-21 03:07:16 +02:00
version = "1.5.0"
features = ["experimental", "compiled_data", "icu_datetime_experimental"]
[dependencies.i18n-embed]
2024-08-21 03:07:16 +02:00
version = "0.15.0"
features = ["fluent-system", "desktop-requester"]
2023-12-22 16:42:56 +01:00
2024-11-11 17:25:09 +01:00
# Contains region-handling logic for Linux
[dependencies.lichen-system]
git = "https://github.com/serpent-os/lichen"
package = "system"
optional = true
2023-12-22 16:42:56 +01:00
[features]
2024-11-11 17:25:09 +01:00
default = ["a11y", "dbus-config", "linux", "single-instance", "wgpu"]
# Default features for Linux
linux = [
"page-about",
"page-bluetooth",
"page-date",
2024-11-22 00:42:00 +01:00
"page-default-apps",
"page-input",
"page-networking",
"page-power",
2024-11-11 17:25:09 +01:00
"page-region",
"page-sound",
"page-window-management",
"page-workspaces",
"xdg-portal",
"wayland",
]
# Pages
page-about = ["dep:cosmic-settings-system", "dep:hostname1-zbus", "dep:zbus"]
page-bluetooth = ["dep:bluez-zbus", "dep:zbus"]
page-date = ["dep:timedate-zbus", "dep:zbus"]
2024-11-22 00:42:00 +01:00
page-default-apps = ["dep:mime-apps"]
2024-11-11 17:25:09 +01:00
page-input = [
"dep:cosmic-comp-config",
"dep:cosmic-settings-config",
"dep:udev",
]
page-networking = [
"ashpd",
"dep:cosmic-dbus-networkmanager",
"dep:cosmic-settings-subscriptions",
"dep:zbus",
]
page-power = ["dep:upower_dbus", "dep:zbus"]
2024-11-11 17:25:09 +01:00
page-region = ["dep:lichen-system", "dep:locale1"]
page-sound = ["dep:cosmic-settings-subscriptions"]
page-window-management = ["dep:cosmic-settings-config"]
page-workspaces = ["dep:cosmic-comp-config"]
# Other features
2024-10-23 11:14:38 -04:00
a11y = ["libcosmic/a11y"]
ashpd = ["dep:ashpd"]
dbus-config = ["libcosmic/dbus-config", "cosmic-config/dbus"]
single-instance = ["libcosmic/single-instance"]
2023-12-22 16:42:56 +01:00
test = []
wayland = ["libcosmic/wayland", "dep:cosmic-panel-config", "dep:cosmic-randr"]
wgpu = ["libcosmic/wgpu"]
xdg-portal = ["libcosmic/xdg-portal"]