Add feature flags for CLI binaries; configure required features for each binary
This commit is contained in:
@@ -4,13 +4,20 @@ version = "0.1.0"
|
|||||||
edition = "2021"
|
edition = "2021"
|
||||||
description = "Command-line interface for OWLEN LLM client"
|
description = "Command-line interface for OWLEN LLM client"
|
||||||
|
|
||||||
|
[features]
|
||||||
|
default = ["chat-client"]
|
||||||
|
chat-client = []
|
||||||
|
code-client = []
|
||||||
|
|
||||||
[[bin]]
|
[[bin]]
|
||||||
name = "owlen"
|
name = "owlen"
|
||||||
path = "src/main.rs"
|
path = "src/main.rs"
|
||||||
|
required-features = ["chat-client"]
|
||||||
|
|
||||||
[[bin]]
|
[[bin]]
|
||||||
name = "owlen-code"
|
name = "owlen-code"
|
||||||
path = "src/code_main.rs"
|
path = "src/code_main.rs"
|
||||||
|
required-features = ["code-client"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
owlen-core = { path = "../owlen-core" }
|
owlen-core = { path = "../owlen-core" }
|
||||||
@@ -31,4 +38,4 @@ crossterm = { workspace = true }
|
|||||||
# Utilities
|
# Utilities
|
||||||
anyhow = { workspace = true }
|
anyhow = { workspace = true }
|
||||||
serde = { workspace = true }
|
serde = { workspace = true }
|
||||||
serde_json = { workspace = true }
|
serde_json = { workspace = true }
|
||||||
|
|||||||
Reference in New Issue
Block a user