refactor(bar-core): move the memory, date and update widgets into komorebi-bar-core

Pure move of the three widget files that are byte-identical in the two bars since the previous revision. Each bar's widgets/mod.rs re-exports them (pub use komorebi_bar_core::widgets::memory / date / update). The core takes chrono, chrono-tz, reqwest (blocking) and serde_json (now a normal dependency, it was only a dev-dependency).

Removed: 541 lines from each bar (138 + 245 + 158), 541 added once.

Verified: Windows cargo clippy --workspace --locked --all-targets -D warnings clean; macOS fake-CC cargo check --locked --workspace --all-targets finished, 0 errors; native cargo test -p komorebi-bar-core 3 unit + 2 oracle passed; harness regeneration byte-identical for both (macOS 3,774 lines, Windows 9,091 lines). Not verified: rendering.
This commit is contained in:
LGUG2Z committed 2026-10-31 01:37:54 -07:00
1 parent 7cd85bd446
commit 6da27dda3c
12 files changed
+20 -550

No files matched your search

Generated
+3
View File
@@ -3435,8 +3435,11 @@ dependencies = [
name = "komorebi-bar-core"
version = "0.1.42"
dependencies = [
"chrono",
"chrono-tz",
"eframe",
"egui-phosphor",
"reqwest",
"schemars 1.2.3",
"serde",
"serde_json_lenient",