Initialize k-launcher project structure with multiple crates and basic configurations

This commit is contained in:
2026-03-15 15:12:28 +01:00
commit 4c3be17b77
22 changed files with 119 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
target/

27
Cargo.lock generated Normal file
View File

@@ -0,0 +1,27 @@
# This file is automatically @generated by Cargo.
# It is not intended for manual editing.
version = 4
[[package]]
name = "k-launcher-kernel"
version = "0.1.0"
[[package]]
name = "k-launcher-os-bridge"
version = "0.1.0"
[[package]]
name = "k-launcher-ui"
version = "0.1.0"
[[package]]
name = "plugin-apps"
version = "0.1.0"
[[package]]
name = "plugin-calc"
version = "0.1.0"
[[package]]
name = "plugin-files"
version = "0.1.0"

9
Cargo.toml Normal file
View File

@@ -0,0 +1,9 @@
[workspace]
members = ["crates/k-launcher-kernel", "crates/k-launcher-os-bridge", "crates/k-launcher-ui", "crates/plugins/plugin-apps", "crates/plugins/plugin-calc", "crates/plugins/plugin-files"]
resolver = "2"
[workspace.dependencies]
iced = { version = "0.14", features = ["canvas", "tokio", "wgpu"] }
tokio = { version = "1.35", features = ["full"] }
serde = { version = "1.0", features = ["derive"] }
tracing = "0.1" # For high-performance logging

0
Makefile Normal file
View File

1
crates/k-launcher-kernel/.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
/target

View File

@@ -0,0 +1,6 @@
[package]
name = "k-launcher-kernel"
version = "0.1.0"
edition = "2024"
[dependencies]

View File

@@ -0,0 +1,14 @@
pub fn add(left: u64, right: u64) -> u64 {
left + right
}
#[cfg(test)]
mod tests {
use super::*;
#[test]
fn it_works() {
let result = add(2, 2);
assert_eq!(result, 4);
}
}

View File

@@ -0,0 +1 @@
/target

View File

@@ -0,0 +1,6 @@
[package]
name = "k-launcher-os-bridge"
version = "0.1.0"
edition = "2024"
[dependencies]

View File

@@ -0,0 +1,14 @@
pub fn add(left: u64, right: u64) -> u64 {
left + right
}
#[cfg(test)]
mod tests {
use super::*;
#[test]
fn it_works() {
let result = add(2, 2);
assert_eq!(result, 4);
}
}

1
crates/k-launcher-ui/.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
/target

View File

@@ -0,0 +1,6 @@
[package]
name = "k-launcher-ui"
version = "0.1.0"
edition = "2024"
[dependencies]

View File

@@ -0,0 +1,3 @@
fn main() {
println!("Hello, world!");
}

1
crates/plugins/plugin-apps/.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
/target

View File

@@ -0,0 +1,6 @@
[package]
name = "plugin-apps"
version = "0.1.0"
edition = "2024"
[dependencies]

View File

@@ -0,0 +1,3 @@
fn main() {
println!("Hello, world!");
}

1
crates/plugins/plugin-calc/.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
/target

View File

@@ -0,0 +1,6 @@
[package]
name = "plugin-calc"
version = "0.1.0"
edition = "2024"
[dependencies]

View File

@@ -0,0 +1,3 @@
fn main() {
println!("Hello, world!");
}

View File

@@ -0,0 +1 @@
/target

View File

@@ -0,0 +1,6 @@
[package]
name = "plugin-files"
version = "0.1.0"
edition = "2024"
[dependencies]

View File

@@ -0,0 +1,3 @@
fn main() {
println!("Hello, world!");
}