mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-11-30 12:14:10 +01:00
ApplicationSpecificConfiguration, AscApplicationRulesOrSchema and AscApplicationRules are code-identical in the trees except that AscApplicationRules differs in its rule kinds: five Windows-only kinds, titleless and tabbed on KDE and macOS. The crate holds the union (declaration order floating-first as before; the platform-only fields carry x-komorebi-platforms, so a view prunes them) and, for the Windows From<Vec<ApplicationConfiguration>> conversion that the orphan rule keeps next to its types, ApplicationOptions and ApplicationConfiguration (data only: the YAML generator stays in the Windows daemon). The crate gains the color-eyre dependency. The oracle test builds the view of ApplicationSpecificConfiguration for Windows, KDE and macOS and compares it with each tree's checked-in schema.asc.json byte for byte: all three are identical. This is the first proof that per-platform views of one union reproduce the checked-in files exactly (D17/D18); the three trees still use their own copies. Verified: native cargo test -p komorebi-config: 4 unit + 6 schemas passed, 0 failed (tier 1).
32 lines
874 B
TOML
32 lines
874 B
TOML
[package]
|
|
name = "komorebi-config"
|
|
version = "0.1.42"
|
|
edition = "2024"
|
|
description = "The komorebi.json data types (StaticConfig and the types it is made of) and the generation of its JSON Schema"
|
|
|
|
[dependencies]
|
|
komorebi-layouts = { path = "../../komorebi-layouts" }
|
|
komorebi-protocol = { path = "../komorebi-protocol", default-features = false }
|
|
komorebi-themes = { path = "../../komorebi-themes" }
|
|
|
|
clap = { workspace = true }
|
|
color-eyre = { workspace = true }
|
|
serde = { workspace = true }
|
|
serde_json = { workspace = true, features = ["preserve_order"] }
|
|
strum = { workspace = true }
|
|
|
|
# Optional dependencies
|
|
schemars = { workspace = true, optional = true }
|
|
|
|
[dev-dependencies]
|
|
schemars = { workspace = true }
|
|
|
|
[features]
|
|
default = ["schemars"]
|
|
schemars = [
|
|
"dep:schemars",
|
|
"komorebi-layouts/schemars",
|
|
"komorebi-protocol/schemars",
|
|
"komorebi-themes/schemars",
|
|
]
|