Add feature flags for CLI binaries; configure required features for each binary

This commit is contained in:
2025-09-28 01:51:32 +02:00
parent ccf9349f99
commit 44884d8627

View File

@@ -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 }
serde_json = { workspace = true }