[workspace]
members = ["cosmic-settings", "page", "pages/*", "subscriptions/*"]
default-members = ["cosmic-settings"]
resolver = "3"

[workspace.package]
rust-version = "1.93"

[workspace.dependencies]
cosmic-randr = { path = "../cosmic-randr/lib" }
tokio = { version = "1.49.0", features = ["macros"] }
iced_winit = { path = "/home/lionel/Projets/COSMIC/libcosmic/iced/winit", default-features = false }
image = { version = "0.25.10", default-features = false, features = [
    "jpeg",
    "png",
    "rayon",
    "webp",
    "hdr",
] }

[workspace.dependencies.cosmic]
package = "libcosmic-yoda"
features = [
    "dbus-config",
    "desktop",
    "multi-window",
    "winit",
    "tokio",
    "qr_code",
]
path = "/home/lionel/Projets/COSMIC/libcosmic"

[workspace.dependencies.cosmic-config]
path = "/home/lionel/Projets/COSMIC/libcosmic/cosmic-config"

[workspace.dependencies.cosmic-bg-config]
path = "../cosmic-bg/config"

[workspace.dependencies.cosmic-comp-config]
path = "../cosmic-comp/cosmic-comp-config"
features = ["output"]

[workspace.dependencies.cosmic-idle-config]
path = "../cosmic-idle/cosmic-idle-config"

[workspace.dependencies.cosmic-panel-config]
path = "../cosmic-panel/cosmic-panel-config"

[workspace.dependencies.cosmic-randr-shell]
path = "../cosmic-randr/shell"

[workspace.dependencies.sctk]
version = "0.20.0"
package = "smithay-client-toolkit"

[profile.dev]
opt-level = 3
lto = "off"

[profile.release]
opt-level = 3
lto = "thin"
panic = "abort"

[profile.release-with-debug]
inherits = "release"
lto = "off"
debug = true

[patch.'https://github.com/pop-os/cosmic-protocols']
cosmic-protocols = { path = "../cosmic-protocols" }
cosmic-client-toolkit = { path = "../cosmic-protocols/client-toolkit" }

[patch.'https://github.com/pop-os/libcosmic']
cosmic-config = { path = "/home/lionel/Projets/COSMIC/libcosmic/cosmic-config" }
cosmic-theme = { path = "/home/lionel/Projets/COSMIC/libcosmic/cosmic-theme" }
iced_futures = { path = "/home/lionel/Projets/COSMIC/libcosmic/iced/futures" }
iced_winit = { path = "/home/lionel/Projets/COSMIC/libcosmic/iced/winit" }

[patch.'https://github.com/pop-os/cosmic-text.git']
cosmic-text = { path = "../cosmic-text" }

[patch.crates-io]
atspi = { git = "https://github.com/wash2/atspi" }
atspi-common = { git = "https://github.com/wash2/atspi" }
