mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-11-27 10:52:52 +01:00
The macOS bar module moves from komorebi-for-mac/komorebi-bar/src/macos to komorebi-bar/src/macos (the include_str! path follows), komorebi-bar/src/main.rs is a cfg_select! over target_os that runs windows::main or macos::main, and komorebi-bar/Cargo.toml has what both share in [dependencies] and the rest in per-target tables (Windows: windows, windows-core, windows-icons x2, systray-util, tokio, regex, which, egui_extras, netdev 0.46, sysinfo 0.39, komorebi-themes without default features; macOS: objc2, objc2-app-kit, icns, raw-window-handle, netdev 0.40, sysinfo 0.38, komorebi-themes with defaults), so each platform keeps the versions it had. The old komorebi-bar-macos package stays as a shim that includes the moved module. The macOS flake builds -p komorebi-bar and its source filter takes the unified package's manifest, main.rs and src/macos; the Windows filter leaves src/macos out. The bar does not build for Linux (no arm of the cfg_select), as before. Gates run: Windows clippy --all-targets -D warnings PASS; macOS fake-CC check --locked --all-targets of -p komorebi-bar and -p komorebi-bar-macos PASS (type check only); bar-core schema oracle (3 + 6) PASS; the S/bar2 harness regenerates schema.bar.json for Windows (9091 lines) and macOS (3774) byte-identical to the checked-in files; tools/kde-closure-check ok; CLI docs oracle identical x3; nix evaluation PASS and by evaluation an edit of komorebi-bar/src/windows changes the Windows derivations only (the macOS side cannot be evaluated on this Linux host). Not run: nix builds, any bar run (Windows screenshot gate and the Mac hand check are owed).
77 lines
2.6 KiB
TOML
77 lines
2.6 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
|
|
|
|
# What both platforms use is in [dependencies]; what only one uses, or uses in another version or with other
|
|
# features, is in the table of its target OS, so that a build for one compiles nothing of the other.
|
|
|
|
[dependencies]
|
|
komorebi-bar-core = { path = "../crates/komorebi-bar-core", default-features = false }
|
|
komorebi-client = { path = "../komorebi-client", 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" }
|
|
font-loader = "0.11"
|
|
hotwatch = { workspace = true }
|
|
image = "0.25"
|
|
lazy_static = { workspace = true }
|
|
num = "0.4"
|
|
num-derive = "0.4"
|
|
num-traits = "0.2"
|
|
parking_lot = { workspace = true }
|
|
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 }
|
|
tracing = { workspace = true }
|
|
tracing-subscriber = { workspace = true }
|
|
|
|
[target.'cfg(windows)'.dependencies]
|
|
komorebi-themes = { path = "../komorebi-themes", default-features = false }
|
|
egui_extras = { workspace = true }
|
|
netdev = "0.46"
|
|
regex = "1"
|
|
sysinfo = { workspace = true }
|
|
systray-util = "0.2.0"
|
|
tokio = { version = "1", features = ["rt", "sync", "time"] }
|
|
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" }
|
|
|
|
[target.'cfg(target_os = "macos")'.dependencies]
|
|
komorebi-themes = { path = "../komorebi-themes" }
|
|
icns = "0.4"
|
|
netdev = "0.40"
|
|
objc2 = { version = "0.6", default-features = false, features = ["std"] }
|
|
objc2-app-kit = { version = "0.3", default-features = false, features = [
|
|
"std",
|
|
"NSApplication",
|
|
"NSResponder",
|
|
"NSView",
|
|
"NSWindow",
|
|
] }
|
|
raw-window-handle = "0.6"
|
|
sysinfo = "0.38"
|
|
|
|
[features]
|
|
default = ["schemars"]
|
|
schemars = [
|
|
"dep:schemars",
|
|
"komorebi-bar-core/schemars",
|
|
"komorebi-client/default",
|
|
"komorebi-themes/default",
|
|
]
|