Files
komorebi/komorebic/Cargo.toml
T
LGUG2Z 19162f3367 refactor(client): one komorebi-client package that re-exports the daemon of the target OS
The root komorebi-client package (0.1.42) is the one client: src/lib.rs is a cfg_select! over target_os
that re-exports the module of the platform. The three lib.rs files move to komorebi-client/src/{windows,
linux,macos}.rs (they were made equal in socket code by the previous revision), the KDE integration tests to
tests/linux_{daemon,subscribe}.rs (#![cfg(target_os = "linux")]). The daemon crate of each platform has a
dependency key of its own (cargo allows one path per key) and the module names it (use crate::komorebi_linux
as komorebi). The old komorebi-client-linux and komorebi-client-macos packages stay as shims that include
the moved module, so the old names build until the cutover (the macOS bar and komorebic-macos still use
them). komorebic now depends on the one komorebi-client on all three platforms. The KDE and macOS flakes
build the unified client (-p komorebi-client) and take its manifest, lib.rs and their module in the source
filter; the Windows filter leaves the other platforms' modules and tests out. Windows API for komorebi-bar,
komorebi-gui and komorebic is unchanged.

Gates run: Windows clippy --all-targets -D warnings PASS (client, bar, gui, komorebic); KDE cargo test -p
komorebi-client -p komorebi-client-linux -p komorebic -p komorebi-linux: 775 passed 0 failed (the client
tests and doctests included); cargo check of komorebic-linux and komorebi-client-linux PASS; macOS fake-CC
check --locked of komorebi-client, komorebic, komorebi-client-macos, komorebi-bar-macos, komorebic-macos
--all-targets PASS (type check only); CLI docs oracle byte-identical x3; nix evaluation PASS; by evaluation an
edit of komorebi-client/src/windows.rs changes only Windows derivations, linux.rs only kfde, macos.rs
neither. Not run: nix builds, the e2e (komorebi-client is in the closure of komorebi.exe's users: Windows e2e
OWED), any macOS link or run.
2026-10-31 12:34:59 -07:00

68 lines
2.3 KiB
TOML

[package]
name = "komorebic"
version = "0.1.42"
description = "The command-line interface for Komorebi, a tiling window manager for Windows, KDE Plasma and macOS"
repository = "https://github.com/LGUG2Z/komorebi"
edition = "2024"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
# The dependencies of each platform are in its own table, so that a build for one target compiles
# nothing of the others. A dependency key can only have one path, so the Linux and macOS crates
# are renamed (`komorebi-client-linux`, ...) and main.rs gives them the names the modules use.
[dependencies]
komorebi-client = { path = "../komorebi-client", default-features = false }
komorebi-config = { path = "../crates/komorebi-config", default-features = false }
komorebic-core = { path = "../crates/komorebic-core" }
chrono = { workspace = true }
clap = { workspace = true }
color-eyre = { workspace = true }
dirs = { workspace = true }
fs-tail = "0.1"
lazy_static = { workspace = true }
schemars = { workspace = true, optional = true }
serde_json = { workspace = true }
[target.'cfg(windows)'.dependencies]
dunce = { workspace = true }
miette = { version = "7", features = ["fancy"] }
open = "5"
powershell_script = "1.0"
reqwest = { version = "0.12", features = ["blocking"] }
serde = { workspace = true }
shadow-rs = { workspace = true }
sysinfo = { workspace = true }
thiserror = "2"
which = { workspace = true }
win-msgbox = "0.2"
windows = { workspace = true }
[target.'cfg(target_os = "linux")'.dependencies]
komorebi-linux = { package = "komorebi-linux", path = "../komorebi-for-kde/komorebi", default-features = false }
komorebi-hotkeys = { path = "../komorebi-for-kde/komorebi-hotkeys" }
version-linux = { package = "version-linux", path = "../komorebi-for-kde/version" }
clap_complete = "4"
sysinfo = "0.40"
[target.'cfg(target_os = "macos")'.dependencies]
version-macos = { package = "version-macos", path = "../komorebi-for-mac/version" }
clap_complete = "4"
reqwest = { version = "0.12", features = ["blocking"] }
sysinfo = "0.38"
[build-dependencies]
shadow-rs = { workspace = true }
[features]
default = ["schemars"]
schemars = [
"dep:schemars",
"komorebi-client/default",
"komorebi-config/schemars",
]
[lints.rust]
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(FALSE)'] }