mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-12-01 04:34:11 +01:00
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:
1 parent
6def6bdfbf
commit
259575a1b3
38 files changed
+159
-158
No files matched your search
@@ -5,4 +5,4 @@ description = "What every komorebi daemon asks of its platform: the Backend trai
|
||||
edition = "2024"
|
||||
|
||||
[dependencies]
|
||||
komorebi-layouts = { path = "../../komorebi-layouts" }
|
||||
komorebi-layouts = { path = "../komorebi-layouts" }
|
||||
@@ -13,8 +13,8 @@ lazy_static = { workspace = true }
|
||||
image = "0.25"
|
||||
komorebi-config = { path = "../komorebi-config", default-features = false }
|
||||
reqwest = { version = "0.12", features = ["blocking"] }
|
||||
komorebi-layouts = { path = "../../komorebi-layouts" }
|
||||
komorebi-themes = { path = "../../komorebi-themes", default-features = false }
|
||||
komorebi-layouts = { path = "../komorebi-layouts" }
|
||||
komorebi-themes = { path = "../komorebi-themes", default-features = false }
|
||||
komorebi-protocol = { path = "../komorebi-protocol", default-features = false }
|
||||
serde = { workspace = true }
|
||||
color-eyre = { workspace = true }
|
||||
|
||||
@@ -5,9 +5,9 @@ edition = "2024"
|
||||
description = "The komorebi.json data types (StaticConfig and the types it is made of) and the generation of its JSON Schema"
|
||||
|
||||
[dependencies]
|
||||
komorebi-layouts = { path = "../../komorebi-layouts" }
|
||||
komorebi-layouts = { path = "../komorebi-layouts" }
|
||||
komorebi-protocol = { path = "../komorebi-protocol", default-features = false }
|
||||
komorebi-themes = { path = "../../komorebi-themes" }
|
||||
komorebi-themes = { path = "../komorebi-themes" }
|
||||
|
||||
clap = { workspace = true }
|
||||
color-eyre = { workspace = true }
|
||||
|
||||
@@ -7,9 +7,9 @@ edition = "2024"
|
||||
[dependencies]
|
||||
komorebi-collections = { path = "../komorebi-collections" }
|
||||
komorebi-config = { path = "../komorebi-config", default-features = false }
|
||||
komorebi-layouts = { path = "../../komorebi-layouts" }
|
||||
komorebi-layouts = { path = "../komorebi-layouts" }
|
||||
komorebi-protocol = { path = "../komorebi-protocol" }
|
||||
komorebi-scrolling = { path = "../../komorebi-scrolling" }
|
||||
komorebi-scrolling = { path = "../komorebi-scrolling" }
|
||||
color-eyre = { workspace = true }
|
||||
nanoid = "0.5"
|
||||
schemars = { workspace = true, optional = true }
|
||||
|
||||
@@ -7,20 +7,20 @@ edition = "2024"
|
||||
[dependencies]
|
||||
komorebi-hotkeys = { path = "../komorebi-hotkeys" }
|
||||
komorebi-themes = { path = "../komorebi-themes" }
|
||||
komorebi-backend = { path = "../crates/komorebi-backend" }
|
||||
komorebi-collections = { path = "../crates/komorebi-collections" }
|
||||
komorebi-core = { path = "../crates/komorebi-core" }
|
||||
komorebi-backend = { path = "../komorebi-backend" }
|
||||
komorebi-collections = { path = "../komorebi-collections" }
|
||||
komorebi-core = { path = "../komorebi-core" }
|
||||
komorebi-layouts = { path = "../komorebi-layouts", features = ["schemars"] }
|
||||
komorebi-scrolling = { path = "../komorebi-scrolling" }
|
||||
komorebi-config = { path = "../crates/komorebi-config", default-features = false, features = [
|
||||
komorebi-config = { path = "../komorebi-config", default-features = false, features = [
|
||||
"schemars",
|
||||
] }
|
||||
komorebi-settings = { path = "../crates/komorebi-settings" }
|
||||
komorebi-protocol = { path = "../crates/komorebi-protocol", default-features = false, features = [
|
||||
komorebi-settings = { path = "../komorebi-settings" }
|
||||
komorebi-protocol = { path = "../komorebi-protocol", default-features = false, features = [
|
||||
"schemars",
|
||||
] }
|
||||
komorebi-transport = { path = "../crates/komorebi-transport" }
|
||||
version = { package = "komorebi-version", path = "../crates/komorebi-version" }
|
||||
komorebi-transport = { path = "../komorebi-transport" }
|
||||
version = { package = "komorebi-version", path = "../komorebi-version" }
|
||||
|
||||
clap = { version = "4", features = ["derive", "wrap_help"] }
|
||||
color-eyre = { version = "0.6" }
|
||||
|
||||
@@ -1812,7 +1812,7 @@ mod tests {
|
||||
let Some(known) = known_keys() else {
|
||||
return;
|
||||
};
|
||||
let example = include_str!("../../docs/linux/komorebi.example.json");
|
||||
let example = include_str!("../../../docs/linux/komorebi.example.json");
|
||||
let value: serde_json::Value = serde_json::from_str(example).unwrap();
|
||||
|
||||
let findings = check_keys(&value, &known);
|
||||
|
||||
@@ -216,7 +216,7 @@ fn the_kinds_of_rule_of_other_platforms_are_read_and_do_nothing() {
|
||||
#[test]
|
||||
fn the_applications_file_komorebic_ships_floats_the_programs_it_names() {
|
||||
let shipped =
|
||||
Path::new(env!("CARGO_MANIFEST_DIR")).join("../komorebic/src/linux/applications.json");
|
||||
Path::new(env!("CARGO_MANIFEST_DIR")).join("../../komorebic/src/linux/applications.json");
|
||||
let mut desktop = Desktop::load(&applications(&shipped)).unwrap();
|
||||
|
||||
assert_eq!(
|
||||
|
||||
@@ -41,7 +41,8 @@ const WINDOWS_ONLY: &[&str] = &[
|
||||
|
||||
fn repo_root() -> PathBuf {
|
||||
Path::new(env!("CARGO_MANIFEST_DIR"))
|
||||
.parent()
|
||||
.ancestors()
|
||||
.nth(2)
|
||||
.unwrap()
|
||||
.to_path_buf()
|
||||
}
|
||||
|
||||
@@ -381,7 +381,7 @@ fn theme_options_choose_the_variant_and_the_colour_each_border_takes() {
|
||||
|
||||
#[test]
|
||||
fn the_wallpaper_example_in_the_docs_loads() {
|
||||
let docs = Path::new(env!("CARGO_MANIFEST_DIR")).join("../docs/linux/usage/wallpapers.md");
|
||||
let docs = Path::new(env!("CARGO_MANIFEST_DIR")).join("../../docs/linux/usage/wallpapers.md");
|
||||
let docs = std::fs::read_to_string(docs).unwrap();
|
||||
let json = docs
|
||||
.split("```json\n")
|
||||
|
||||
@@ -6,23 +6,23 @@ edition = "2024"
|
||||
|
||||
[dependencies]
|
||||
komorebi-themes = { path = "../komorebi-themes" }
|
||||
komorebi-backend = { path = "../crates/komorebi-backend" }
|
||||
komorebi-collections = { path = "../crates/komorebi-collections" }
|
||||
komorebi-core = { path = "../crates/komorebi-core" }
|
||||
komorebi-backend = { path = "../komorebi-backend" }
|
||||
komorebi-collections = { path = "../komorebi-collections" }
|
||||
komorebi-core = { path = "../komorebi-core" }
|
||||
komorebi-layouts = { path = "../komorebi-layouts", features = [
|
||||
"darwin",
|
||||
"schemars",
|
||||
] }
|
||||
komorebi-config = { path = "../crates/komorebi-config", default-features = false, features = [
|
||||
komorebi-config = { path = "../komorebi-config", default-features = false, features = [
|
||||
"schemars",
|
||||
] }
|
||||
komorebi-settings = { path = "../crates/komorebi-settings" }
|
||||
komorebi-protocol = { path = "../crates/komorebi-protocol", default-features = false, features = [
|
||||
komorebi-settings = { path = "../komorebi-settings" }
|
||||
komorebi-protocol = { path = "../komorebi-protocol", default-features = false, features = [
|
||||
"schemars",
|
||||
] }
|
||||
komorebi-transport = { path = "../crates/komorebi-transport" }
|
||||
komorebi-transport = { path = "../komorebi-transport" }
|
||||
quickxml_to_serde = { git = "https://github.com/LGUG2Z/quickxml_to_serde.git", version = "0.6.1" }
|
||||
version = { package = "komorebi-version", path = "../crates/komorebi-version" }
|
||||
version = { package = "komorebi-version", path = "../komorebi-version" }
|
||||
|
||||
base64 = "0.22"
|
||||
block2 = "0.6"
|
||||
|
||||
@@ -459,13 +459,13 @@ mod tests {
|
||||
#[test]
|
||||
fn the_swipes_of_a_stream_lift_at_the_speed_that_they_were_made_to() {
|
||||
let long = lift_speed(&moves_of(include_str!(
|
||||
"../../komorebic/fixtures/pan3-long.transcript.txt"
|
||||
"../../komorebic-core/fixtures/pan3-long.transcript.txt"
|
||||
)));
|
||||
let flick = lift_speed(&moves_of(include_str!(
|
||||
"../../komorebic/fixtures/pan3-flick.transcript.txt"
|
||||
"../../komorebic-core/fixtures/pan3-flick.transcript.txt"
|
||||
)));
|
||||
let slow = lift_speed(&moves_of(include_str!(
|
||||
"../../komorebic/fixtures/pan3-slow.transcript.txt"
|
||||
"../../komorebic-core/fixtures/pan3-slow.transcript.txt"
|
||||
)));
|
||||
|
||||
// 0.128 cm every 8 ms, and 0.267 every 8
|
||||
|
||||
@@ -5,8 +5,8 @@ edition = "2024"
|
||||
description = "The wire types shared by every komorebi daemon and client: SocketMessage and its payloads"
|
||||
|
||||
[dependencies]
|
||||
komorebi-layouts = { path = "../../komorebi-layouts" }
|
||||
komorebi-themes = { path = "../../komorebi-themes" }
|
||||
komorebi-layouts = { path = "../komorebi-layouts" }
|
||||
komorebi-themes = { path = "../komorebi-themes" }
|
||||
|
||||
clap = { workspace = true }
|
||||
color-eyre = { workspace = true }
|
||||
|
||||
@@ -6,8 +6,8 @@ description = "The settings every komorebi daemon reads while it runs: one immut
|
||||
|
||||
[dependencies]
|
||||
komorebi-config = { path = "../komorebi-config", default-features = false }
|
||||
komorebi-layouts = { path = "../../komorebi-layouts" }
|
||||
komorebi-layouts = { path = "../komorebi-layouts" }
|
||||
komorebi-protocol = { path = "../komorebi-protocol", default-features = false }
|
||||
komorebi-themes = { path = "../../komorebi-themes", default-features = false }
|
||||
komorebi-themes = { path = "../komorebi-themes", default-features = false }
|
||||
|
||||
parking_lot = "0.12"
|
||||
@@ -8,16 +8,16 @@ edition = "2024"
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
[dependencies]
|
||||
komorebi-backend = { path = "../crates/komorebi-backend" }
|
||||
komorebi-collections = { path = "../crates/komorebi-collections" }
|
||||
komorebi-core = { path = "../crates/komorebi-core" }
|
||||
komorebi-config = { path = "../crates/komorebi-config", default-features = false }
|
||||
komorebi-settings = { path = "../crates/komorebi-settings" }
|
||||
komorebi-backend = { path = "../komorebi-backend" }
|
||||
komorebi-collections = { path = "../komorebi-collections" }
|
||||
komorebi-core = { path = "../komorebi-core" }
|
||||
komorebi-config = { path = "../komorebi-config", default-features = false }
|
||||
komorebi-settings = { path = "../komorebi-settings" }
|
||||
komorebi-layouts = { path = "../komorebi-layouts", features = ["win32"] }
|
||||
komorebi-scrolling = { path = "../komorebi-scrolling" }
|
||||
komorebi-themes = { path = "../komorebi-themes" }
|
||||
komorebi-protocol = { path = "../crates/komorebi-protocol", default-features = false }
|
||||
komorebi-transport = { path = "../crates/komorebi-transport" }
|
||||
komorebi-protocol = { path = "../komorebi-protocol", default-features = false }
|
||||
komorebi-transport = { path = "../komorebi-transport" }
|
||||
|
||||
base64 = "0.22"
|
||||
bitflags = { version = "2", features = ["serde"] }
|
||||
|
||||
@@ -388,13 +388,13 @@ mod tests {
|
||||
#[test]
|
||||
fn the_swipes_that_whkd_writes_lift_at_the_speed_that_they_were_made_to() {
|
||||
let long = lift_speed(&moves_of(include_str!(
|
||||
"../../komorebic/fixtures/pan3-long.transcript.txt"
|
||||
"../../komorebic-core/fixtures/pan3-long.transcript.txt"
|
||||
)));
|
||||
let flick = lift_speed(&moves_of(include_str!(
|
||||
"../../komorebic/fixtures/pan3-flick.transcript.txt"
|
||||
"../../komorebic-core/fixtures/pan3-flick.transcript.txt"
|
||||
)));
|
||||
let slow = lift_speed(&moves_of(include_str!(
|
||||
"../../komorebic/fixtures/pan3-slow.transcript.txt"
|
||||
"../../komorebic-core/fixtures/pan3-slow.transcript.txt"
|
||||
)));
|
||||
|
||||
// 0.128 cm every 8 ms, and 0.267 every 8
|
||||
|
||||
@@ -8,5 +8,5 @@ edition = "2024"
|
||||
clap = { workspace = true }
|
||||
clap_complete = "4"
|
||||
color-eyre = { workspace = true }
|
||||
komorebi-layouts = { path = "../../komorebi-layouts" }
|
||||
komorebi-layouts = { path = "../komorebi-layouts" }
|
||||
komorebi-protocol = { path = "../komorebi-protocol", default-features = false }
|
||||
@@ -355,7 +355,7 @@ mod tests {
|
||||
use super::*;
|
||||
|
||||
const TRANSCRIPT: &str =
|
||||
include_str!("../../../komorebic/fixtures/gesture-stream.transcript.txt");
|
||||
include_str!("../fixtures/gesture-stream.transcript.txt");
|
||||
|
||||
fn gestures(told: &[SocketMessage]) -> Vec<PanGesture> {
|
||||
told.iter()
|
||||
@@ -542,9 +542,9 @@ mod tests {
|
||||
|
||||
/// What whkd writes for a swipe of three fingers that goes on for about two seconds, a
|
||||
/// flick, and one that eases to a stop: `whkd touchpad --demo <name> --instant`
|
||||
const LONG: &str = include_str!("../../../komorebic/fixtures/pan3-long.transcript.txt");
|
||||
const FLICK: &str = include_str!("../../../komorebic/fixtures/pan3-flick.transcript.txt");
|
||||
const SLOW: &str = include_str!("../../../komorebic/fixtures/pan3-slow.transcript.txt");
|
||||
const LONG: &str = include_str!("../fixtures/pan3-long.transcript.txt");
|
||||
const FLICK: &str = include_str!("../fixtures/pan3-flick.transcript.txt");
|
||||
const SLOW: &str = include_str!("../fixtures/pan3-slow.transcript.txt");
|
||||
|
||||
/// How many lines of a transcript are not part of the stream: whkd's demo says which swipe
|
||||
/// it saw, as `swipe swipe3right`, among them, and nothing says that the program that it
|
||||
|
||||
Reference in new issue
Block a user