Files
komorebi/crates/komorebi-core/Cargo.toml
T
LGUG2Z 88afd37d36 feat(core): WorkspaceGlobals moves into komorebi-core
The plain data a monitor gives the workspaces it shows (padding, border
width and offset, work area, offsets, floating layer behaviour), moved
from komorebi-for-kde/komorebi/src/workspace.rs (the Windows struct is
the same nine fields with the same derives) into komorebi-core, with the
KDE doc comments and two unit tests. komorebi-core now depends on
komorebi-config (for FloatingLayerBehaviour, default features off) and
komorebi-layouts (for Rect); its schemars feature enables theirs. The
struct derives JsonSchema under the feature, as Windows' did; a workspace
skips the field when serialised and in its schema, so no schema changes.

No daemon uses it yet: the next two revisions converge KDE and Windows.

Verified: cargo test -p komorebi-core --features schemars (native): 15
passed, 0 failed. Not run: the daemons.
2026-10-31 12:14:35 -07:00

27 lines
838 B
TOML

[package]
name = "komorebi-core"
version = "0.1.42"
description = "The model every komorebi daemon shares, generic over the platform's window: containers first, then monitors, workspaces and the window manager"
edition = "2024"
[dependencies]
komorebi-collections = { path = "../komorebi-collections" }
komorebi-config = { path = "../komorebi-config", default-features = false }
komorebi-layouts = { path = "../../komorebi-layouts" }
nanoid = "0.5"
schemars = { workspace = true, optional = true }
serde = { workspace = true }
tracing = { workspace = true }
[dev-dependencies]
serde_json = { workspace = true, features = ["preserve_order"] }
[features]
# derives `schemars::JsonSchema` for the model types
schemars = [
"dep:schemars",
"komorebi-collections/schemars",
"komorebi-config/schemars",
"komorebi-layouts/schemars",
]