mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-12-03 05:34:32 +01:00
The (now identical) config.rs of both bars becomes crates/komorebi-bar-core/src/config/komobar.rs; each shell config.rs is one line, `pub use komorebi_bar_core::config::*;`. Import edits only: statics from crate::statics, PathExt/SocketMessage from komorebi-protocol, Rect from komorebi-layouts, the platform hooks and WidgetConfig as in the core. The core gains komorebi-themes (KomobarTheme, Colour; schemars forwarded): one line in each Cargo.lock. About 590 lines per bar are gone. Because the configuration types are now all in the core, the oracle test regenerates the macOS schema natively: the macOS view of `schema_for!(KomobarConfig)` is byte-identical to komorebi-for-mac/schema.bar.json (new test `generated`). Windows is still compared by the out-of-tree harness: three descriptions in komorebi-protocol and komorebi-themes read differently when compiled for Windows, which a Linux test cannot do. Verified: native bar-core tests 3 unit + 6 oracle (incl. the generated macOS view); schema harness macOS and Windows byte-identical (3,774 / 9,091 lines); Windows clippy -D warnings --locked clean; macOS fake-CC check --locked 0 errors (core files touched first). Not run: the bars.
32 lines
1.3 KiB
TOML
32 lines
1.3 KiB
TOML
[package]
|
|
name = "komorebi-bar-core"
|
|
version = "0.1.42"
|
|
description = "The status bar shared by the Windows and macOS komorebi bars: configuration, widgets and the platform seam"
|
|
edition = "2024"
|
|
|
|
[dependencies]
|
|
chrono = { workspace = true }
|
|
chrono-tz = { workspace = true }
|
|
eframe = { workspace = true }
|
|
egui-phosphor = { git = "https://github.com/amPerl/egui-phosphor", rev = "d13688738478ecd12b426e3e74c59d6577a85b59" }
|
|
lazy_static = { workspace = true }
|
|
image = "0.25"
|
|
komorebi-config = { path = "../komorebi-config", default-features = false }
|
|
reqwest = { version = "0.12", features = ["blocking"] }
|
|
komorebi-layouts = { path = "../../komorebi-layouts" }
|
|
komorebi-themes = { path = "../../komorebi-themes", default-features = false }
|
|
komorebi-protocol = { path = "../komorebi-protocol", default-features = false }
|
|
serde = { workspace = true }
|
|
color-eyre = { workspace = true }
|
|
serde_json = { workspace = true, features = ["preserve_order"] }
|
|
starship-battery = "0.11"
|
|
sysinfo = { workspace = true }
|
|
tracing = { workspace = true }
|
|
|
|
# Optional dependencies
|
|
schemars = { workspace = true, optional = true }
|
|
|
|
[features]
|
|
default = ["schemars"]
|
|
schemars = ["dep:schemars", "komorebi-config/schemars", "komorebi-layouts/schemars", "komorebi-themes/schemars", "komorebi-protocol/schemars"]
|