build: route the workspace to crates/

The workspace members, the path dependencies, the include_str! and test
fixture paths, the recorder's indexed source keys, and the Nix source
filter and path literals follow the new layout. Cargo.lock is unchanged.
This commit is contained in:
LGUG2Z committed 2026-11-05 15:03:27 -08:00
1 parent 6def6bdfbf
commit 259575a1b3
38 files changed
+159 -158

No files matched your search

+3 -3
View File
@@ -135,7 +135,7 @@ in
# the Linux packages and the platform-neutral crates (layouts, scrolling, themes and the
# shared crates/*), whose tests ran in no check. Not `--workspace`: that unifies the
# features of komorebi-daemon and the crates it pulls in, and windows-future fails to build.
# features of komorebi and the crates it pulls in, and windows-future fails to build.
linux-nextest = build.craneLib.cargoNextest (
build.individualCrateArgs
// {
@@ -169,8 +169,8 @@ in
pkgs.typescript
];
src = lib.fileset.toSource {
root = ../../komorebi-linux/src/kwin;
fileset = lib.fileset.fileFilter (file: !file.hasExt "rs") ../../komorebi-linux/src/kwin;
root = ../../crates/komorebi-linux/src/kwin;
fileset = lib.fileset.fileFilter (file: !file.hasExt "rs") ../../crates/komorebi-linux/src/kwin;
};
}
''
+4 -4
View File
@@ -8,9 +8,9 @@
"crates/komorebi-transport",
"crates/komorebi-version",
"crates/komorebic-core",
"komorebi-client",
"komorebi-layouts",
"komorebi-scrolling",
"komorebi-themes",
"crates/komorebi-client",
"crates/komorebi-layouts",
"crates/komorebi-scrolling",
"crates/komorebi-themes",
"komorebic"
]
+2 -2
View File
@@ -1,5 +1,5 @@
# `keybindings-fixtures`: every key binding file of the fixture corpus
# (komorebi-hotkeys/tests/fixtures) through `komorebic hotkeys compile --mode auto --dry-run`,
# (crates/komorebi-hotkeys/tests/fixtures) through `komorebic hotkeys compile --mode auto --dry-run`,
# the command the NixOS module runs, compared with `keybindings.expected`: the static shortcuts of
# each file, the bindings left to the engine, and the diagnostics, as the build log of the module
# shows them. After a change that means to change them, write the file again with the loop below,
@@ -15,7 +15,7 @@ let
in
pkgs.runCommand "keybindings-fixtures"
{
fixtures = ../../../komorebi-hotkeys/tests/fixtures;
fixtures = ../../../crates/komorebi-hotkeys/tests/fixtures;
expected = ./keybindings.expected;
samples = lib.fileset.toSource {
root = ../../../docs/linux;
+2 -2
View File
@@ -344,13 +344,13 @@ let
withFile = keybindings {
format = "sxhkd";
file = ../../../komorebi-hotkeys/tests/fixtures/plain.sxhkdrc;
file = ../../../crates/komorebi-hotkeys/tests/fixtures/plain.sxhkdrc;
};
textAndFile = keybindings {
format = "skhd";
text = "alt - h : komorebic focus left\n";
file = ../../../komorebi-hotkeys/tests/fixtures/plain.skhdrc;
file = ../../../crates/komorebi-hotkeys/tests/fixtures/plain.skhdrc;
};
# the typed `config` and the key bindings are two parts of one command line
+1 -1
View File
@@ -1,5 +1,5 @@
# vm-keys-skhd, vm-keys-whkd and vm-keys-sxhkd: the case `vm` of the key binding corpus
# (komorebi-hotkeys/tests/fixtures/vm.*), in the format of the suite, installed by the NixOS module
# (crates/komorebi-hotkeys/tests/fixtures/vm.*), in the format of the suite, installed by the NixOS module
# (`services.komorebi.keybindings`, mode auto). Alt+J can be a static shortcut, which KWin runs
# from the system profile; Alt+, cannot, so the module's daemon registers it and runs it. The Rust
# tests and `keybindings-fixtures` check the plan; only a real session can say that what the
@@ -1,5 +1,5 @@
r"""vm-keys-skhd, vm-keys-whkd and vm-keys-sxhkd: the case `vm` of the key binding corpus
(komorebi-hotkeys/tests/fixtures/vm.*), in the format of the suite, installed by the NixOS module
(crates/komorebi-hotkeys/tests/fixtures/vm.*), in the format of the suite, installed by the NixOS module
(`services.komorebi.keybindings`, mode auto). Alt+J can be a static shortcut, which KWin runs
from the system profile; Alt+, cannot, so the module's daemon registers it and runs it. The Rust
tests and `keybindings-fixtures` check the plan; only a real session can say that what the
@@ -6,7 +6,7 @@
script = "../../keys-corpus.py";
node.services.komorebi.keybindings = {
format = "skhd";
file = ../../../../../../komorebi-hotkeys/tests/fixtures/vm.skhdrc;
file = ../../../../../../crates/komorebi-hotkeys/tests/fixtures/vm.skhdrc;
mode = "auto";
};
}
@@ -6,7 +6,7 @@
script = "../../keys-corpus.py";
node.services.komorebi.keybindings = {
format = "sxhkd";
file = ../../../../../../komorebi-hotkeys/tests/fixtures/vm.sxhkdrc;
file = ../../../../../../crates/komorebi-hotkeys/tests/fixtures/vm.sxhkdrc;
mode = "auto";
};
}
@@ -6,7 +6,7 @@
script = "../../keys-corpus.py";
node.services.komorebi.keybindings = {
format = "whkd";
file = ../../../../../../komorebi-hotkeys/tests/fixtures/vm.whkdrc;
file = ../../../../../../crates/komorebi-hotkeys/tests/fixtures/vm.whkdrc;
mode = "auto";
};
}