From 8494a806bf3f5c1c001c5be6333684f7d6bf6c66 Mon Sep 17 00:00:00 2001 From: vikingowl Date: Thu, 26 Mar 2026 11:53:00 +0100 Subject: [PATCH] feat(owlry-core): scaffold new core crate --- Cargo.toml | 1 + crates/owlry-core/Cargo.toml | 45 ++++++++++++++++++++++++++++++++++++ crates/owlry-core/src/lib.rs | 7 ++++++ 3 files changed, 53 insertions(+) create mode 100644 crates/owlry-core/Cargo.toml create mode 100644 crates/owlry-core/src/lib.rs diff --git a/Cargo.toml b/Cargo.toml index cb0e36c..13cb96e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -18,6 +18,7 @@ members = [ "crates/owlry-plugin-systemd", "crates/owlry-lua", "crates/owlry-rune", + "crates/owlry-core", ] # Shared workspace settings diff --git a/crates/owlry-core/Cargo.toml b/crates/owlry-core/Cargo.toml new file mode 100644 index 0000000..0865c10 --- /dev/null +++ b/crates/owlry-core/Cargo.toml @@ -0,0 +1,45 @@ +[package] +name = "owlry-core" +version = "0.5.0" +edition.workspace = true +rust-version.workspace = true +license.workspace = true +repository.workspace = true +description = "Core daemon for the Owlry application launcher" + +[lib] +name = "owlry_core" +path = "src/lib.rs" + +[dependencies] +owlry-plugin-api = { path = "../owlry-plugin-api" } + +# Provider system +fuzzy-matcher = "0.3" +freedesktop-desktop-entry = "0.8" + +# Plugin loading +libloading = "0.8" +semver = "1" + +# Data & config +serde = { version = "1", features = ["derive"] } +serde_json = "1" +toml = "0.8" +chrono = { version = "0.4", features = ["serde"] } +dirs = "5" + +# Logging & notifications +log = "0.4" +env_logger = "0.11" +notify-rust = "4" + +# Optional: embedded Lua runtime +mlua = { version = "0.11", features = ["lua54", "vendored", "send", "serialize"], optional = true } +meval = { version = "0.2", optional = true } +reqwest = { version = "0.13", default-features = false, features = ["rustls", "json", "blocking"], optional = true } + +[features] +default = [] +lua = ["dep:mlua", "dep:meval", "dep:reqwest"] +dev-logging = [] diff --git a/crates/owlry-core/src/lib.rs b/crates/owlry-core/src/lib.rs new file mode 100644 index 0000000..7396113 --- /dev/null +++ b/crates/owlry-core/src/lib.rs @@ -0,0 +1,7 @@ +pub mod config; +pub mod data; +pub mod filter; +pub mod notify; +pub mod paths; +pub mod plugins; +pub mod providers;