mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-11-28 19:32:48 +01:00
komorebic-linux, komorebi-client-linux, komorebic-macos, komorebi-client-macos and komorebi-bar-macos were #[path] includes of the unified komorebic, komorebi-client and komorebi-bar modules, kept only so the old package names kept building. The unified packages are the only ones now, so the five directories and their workspace members are gone (Cargo.lock loses their dependency entries). Things that named the old packages follow: the clarify entries of the two per-tree deny.toml files, tools/fast-check, tools/mac-check.sh and tools/kde-closure-check (it now walks komorebic and komorebi-client), and the doc comment of komorebic/src/main.rs. komorebi-for-kde/nix/root-crates.json gains komorebic, komorebi-client and crates/komorebi-version, because those are root crates the KDE build depends on now. komorebi-for-mac/komorebi/src/pan.rs read its transcripts from the deleted komorebic/fixtures; they are byte-identical to the root komorebic/fixtures, so the three paths point there. Not touched here (done in the flake and justfile revisions of this stack): the nix flakes and justfiles of the trees, which still name the removed packages, and docs/dev. Verified: Windows cargo clippy --locked --all-targets -D warnings (default members) passes; KDE cargo test -p komorebi -p komorebic -p komorebi-client -p komorebi-linux passes; macOS cargo check --target aarch64-apple-darwin (fake CC) of komorebi, komorebi-macos, komorebic, komorebi-client, komorebi-bar passes; tools/kde-closure-check passes. The nix flakes were not run.
26 lines
715 B
Rust
26 lines
715 B
Rust
//! `komorebic`, the command line interface of komorebi, for Windows, KDE Plasma and macOS.
|
|
//!
|
|
//! The platform is the target OS: each of the three modules is the CLI of one platform, with the
|
|
//! subcommands that platform has, and `main` runs the one that was compiled in. The code they share
|
|
//! is `komorebic-core`.
|
|
|
|
cfg_select! {
|
|
target_os = "windows" => {
|
|
mod windows;
|
|
use windows as platform;
|
|
}
|
|
target_os = "linux" => {
|
|
extern crate komorebi_linux as komorebi;
|
|
mod linux;
|
|
use linux as platform;
|
|
}
|
|
target_os = "macos" => {
|
|
mod macos;
|
|
use macos as platform;
|
|
}
|
|
}
|
|
|
|
fn main() -> color_eyre::eyre::Result<()> {
|
|
platform::main()
|
|
}
|