From e4a7ef5baef5c3e29da8ba6e3ff8e26688118c14 Mon Sep 17 00:00:00 2001 From: Leo dev Date: Mon, 1 Sep 2025 10:13:42 +0200 Subject: [PATCH] Separated the binary from lib/sdk --- .gitignore | 7 ++++--- Cargo.toml | 2 +- Cargo.lock => cli/Cargo.lock | 7 +++++++ cli/Cargo.toml | 7 +++++++ {src => cli/src}/main.rs | 0 test-plugin/.gitignore | 3 --- test-plugin/Cargo.toml | 2 +- 7 files changed, 20 insertions(+), 8 deletions(-) rename Cargo.lock => cli/Cargo.lock (99%) create mode 100644 cli/Cargo.toml rename {src => cli/src}/main.rs (100%) delete mode 100644 test-plugin/.gitignore diff --git a/.gitignore b/.gitignore index e25729a..ab1f4f8 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ -/target -/plugins -config.json \ No newline at end of file +target +plugins +config.json +/Cargo.lock \ No newline at end of file diff --git a/Cargo.toml b/Cargo.toml index 1275ef3..427fd0c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,5 +12,5 @@ serde_json = "1.0.143" tungstenite = "0.27.0" [features] -default = ["loader"] +default = [] loader = ["libloading"] diff --git a/Cargo.lock b/cli/Cargo.lock similarity index 99% rename from Cargo.lock rename to cli/Cargo.lock index cd5f496..1a42a52 100644 --- a/Cargo.lock +++ b/cli/Cargo.lock @@ -29,6 +29,13 @@ version = "1.0.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2fd1289c04a9ea8cb22300a459a72a385d7c73d3259e2ed7dcb2af674838cfa9" +[[package]] +name = "cli" +version = "0.1.0" +dependencies = [ + "voxa-server", +] + [[package]] name = "cpufeatures" version = "0.2.17" diff --git a/cli/Cargo.toml b/cli/Cargo.toml new file mode 100644 index 0000000..6f32728 --- /dev/null +++ b/cli/Cargo.toml @@ -0,0 +1,7 @@ +[package] +name = "cli" +version = "0.1.0" +edition = "2024" + +[dependencies] +voxa-server = { path = "../", features = ["loader"]} diff --git a/src/main.rs b/cli/src/main.rs similarity index 100% rename from src/main.rs rename to cli/src/main.rs diff --git a/test-plugin/.gitignore b/test-plugin/.gitignore deleted file mode 100644 index e25729a..0000000 --- a/test-plugin/.gitignore +++ /dev/null @@ -1,3 +0,0 @@ -/target -/plugins -config.json \ No newline at end of file diff --git a/test-plugin/Cargo.toml b/test-plugin/Cargo.toml index 05cdd38..5ad980d 100644 --- a/test-plugin/Cargo.toml +++ b/test-plugin/Cargo.toml @@ -7,4 +7,4 @@ edition = "2024" crate-type = ["cdylib", "lib"] [dependencies] -voxa-server = { path = "../", default-features = false } \ No newline at end of file +voxa-server = { path = "../" } \ No newline at end of file