From 44884d862711ace7cdd5ec43502f991829a5e0f6 Mon Sep 17 00:00:00 2001 From: vikingowl Date: Sun, 28 Sep 2025 01:51:32 +0200 Subject: [PATCH] Add feature flags for CLI binaries; configure required features for each binary --- crates/owlen-cli/Cargo.toml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/crates/owlen-cli/Cargo.toml b/crates/owlen-cli/Cargo.toml index 9d98326..8b5df09 100644 --- a/crates/owlen-cli/Cargo.toml +++ b/crates/owlen-cli/Cargo.toml @@ -4,13 +4,20 @@ version = "0.1.0" edition = "2021" description = "Command-line interface for OWLEN LLM client" +[features] +default = ["chat-client"] +chat-client = [] +code-client = [] + [[bin]] name = "owlen" path = "src/main.rs" +required-features = ["chat-client"] [[bin]] name = "owlen-code" path = "src/code_main.rs" +required-features = ["code-client"] [dependencies] owlen-core = { path = "../owlen-core" } @@ -31,4 +38,4 @@ crossterm = { workspace = true } # Utilities anyhow = { workspace = true } serde = { workspace = true } -serde_json = { workspace = true } \ No newline at end of file +serde_json = { workspace = true }