mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-11-22 08:31:50 +01:00
Pure move of the two widget files that are byte-identical in the Windows and macOS bars. Each bar's widgets/mod.rs re-exports them (pub use komorebi_bar_core::widgets::battery / cpu), so crate::widgets::battery::... resolves as before; the files themselves are unchanged. Dependencies: the core takes sysinfo from the root workspace (0.39) and starship-battery 0.11, the versions the Windows bar already used. The macOS bar therefore now gets these two widgets built against sysinfo 0.39 (its own workspace pins 0.38, still used by its other widgets until they move) and starship-battery 0.11 (was 0.10; its own dependency on the crate is removed). Both compile unchanged; behaviour of the libraries is not verified on macOS. Not changed on purpose: the macOS bug that these two files spawn cmd.exe (taskmgr.exe, explorer.exe) on click is still there, identically; it is fixed behind the platform hook, not inside a move. Removed: 325 lines from each bar (191 + 134), 325 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 (bar warnings 6, unchanged; macOS Cargo.lock: starship-battery 0.10.3 -> 0.11.1 with its dependencies (uom, plist, nix), sysinfo 0.39.6 added next to 0.38.4); native cargo test -p komorebi-bar-core 3 unit + 2 oracle passed; harness regeneration (S/bar2/regen.sh, which now fails when a harness does not build): macOS byte-identical (3,774 lines), Windows byte-identical (9,091 lines). Not verified: rendering, sysinfo and starship-battery behaviour on macOS.
57 lines
1.9 KiB
TOML
57 lines
1.9 KiB
TOML
[package]
|
|
name = "komorebi-bar"
|
|
version = "0.1.42"
|
|
edition = "2024"
|
|
|
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
|
|
|
[dependencies]
|
|
komorebi-bar-core = { path = "../crates/komorebi-bar-core", default-features = false }
|
|
komorebi-client = { path = "../komorebi-client", default-features = false }
|
|
komorebi-themes = { path = "../komorebi-themes", default-features = false }
|
|
|
|
chrono-tz = { workspace = true }
|
|
chrono = { workspace = true }
|
|
clap = { workspace = true }
|
|
color-eyre = { workspace = true }
|
|
crossbeam-channel = { workspace = true }
|
|
dirs = { workspace = true }
|
|
dunce = { workspace = true }
|
|
eframe = { workspace = true }
|
|
egui-phosphor = { git = "https://github.com/amPerl/egui-phosphor", rev = "d13688738478ecd12b426e3e74c59d6577a85b59" }
|
|
egui_extras = { workspace = true }
|
|
font-loader = "0.11"
|
|
hotwatch = { workspace = true }
|
|
image = "0.25"
|
|
lazy_static = { workspace = true }
|
|
netdev = "0.46"
|
|
num = "0.4"
|
|
num-derive = "0.4"
|
|
num-traits = "0.2"
|
|
parking_lot = { workspace = true }
|
|
regex = "1"
|
|
random_word = { version = "0.5", features = ["en"] }
|
|
reqwest = { version = "0.12", features = ["blocking"] }
|
|
schemars = { workspace = true, optional = true }
|
|
serde = { workspace = true }
|
|
serde_json = { workspace = true }
|
|
sysinfo = { workspace = true }
|
|
systray-util = "0.2.0"
|
|
tokio = { version = "1", features = ["rt", "sync", "time"] }
|
|
tracing = { workspace = true }
|
|
tracing-subscriber = { workspace = true }
|
|
which = { workspace = true }
|
|
windows = { workspace = true }
|
|
windows-core = { workspace = true }
|
|
windows-icons = { git = "https://github.com/LGUG2Z/windows-icons", rev = "0c9d7ee1b807347c507d3a9862dd007b4d3f4354" }
|
|
windows-icons-fallback = { package = "windows-icons", git = "https://github.com/LGUG2Z/windows-icons", rev = "d67cc9920aa9b4883393e411fb4fa2ddd4c498b5" }
|
|
|
|
[features]
|
|
default = ["schemars"]
|
|
schemars = [
|
|
"dep:schemars",
|
|
"komorebi-bar-core/schemars",
|
|
"komorebi-client/default",
|
|
"komorebi-themes/default",
|
|
]
|