@@ -29,6 +29,65 @@ authors = ["CodeGraph Team"]
2929license = " MIT OR Apache-2.0"
3030repository = " https://github.com/codegraph/embedding-system"
3131
32+ # Feature groups for common development scenarios
33+ [workspace .metadata .cargo-features ]
34+ # Minimal build for MCP server development (fastest build times)
35+ mcp-minimal = [
36+ " ai-enhanced" ,
37+ " embeddings-ollama" ,
38+ " codegraph-ai/anthropic"
39+ ]
40+
41+ # MCP development with LM Studio support
42+ mcp-lmstudio = [
43+ " ai-enhanced" ,
44+ " embeddings-ollama" ,
45+ " embeddings-lmstudio" ,
46+ " codegraph-ai/anthropic" ,
47+ " codegraph-ai/openai-compatible"
48+ ]
49+
50+ # Full local stack (no cloud dependencies)
51+ local-stack = [
52+ " daemon" ,
53+ " ai-enhanced" ,
54+ " embeddings-ollama" ,
55+ " embeddings-lmstudio" ,
56+ " embeddings-local" ,
57+ " codegraph-ai/openai-compatible" ,
58+ " autoagents-experimental"
59+ ]
60+
61+ # Cloud-enabled build
62+ cloud-enabled = [
63+ " daemon" ,
64+ " ai-enhanced" ,
65+ " cloud" ,
66+ " embeddings-jina" ,
67+ " codegraph-ai/anthropic" ,
68+ " codegraph-ai/openai-llm" ,
69+ " server-http" ,
70+ " autoagents-experimental"
71+ ]
72+
73+ # Everything (development/testing)
74+ full = [
75+ " daemon" ,
76+ " ai-enhanced" ,
77+ " cloud" ,
78+ " embeddings" ,
79+ " embeddings-local" ,
80+ " embeddings-openai" ,
81+ " embeddings-ollama" ,
82+ " embeddings-jina" ,
83+ " embeddings-lmstudio" ,
84+ " codegraph-ai/anthropic" ,
85+ " codegraph-ai/openai-llm" ,
86+ " codegraph-ai/openai-compatible" ,
87+ " server-http" ,
88+ " autoagents-experimental"
89+ ]
90+
3291[workspace .dependencies ]
3392fastrand = " 2.0"
3493governor = { version = " 0.10.1" }
@@ -223,14 +282,25 @@ inherits = "release"
223282debug = true
224283
225284[profile .dev ]
226- opt-level = 1
285+ opt-level = 0 # Faster compilation (0 = no optimization)
227286debug = true
228287incremental = true
288+ codegen-units = 256 # Parallel codegen for faster builds
229289
230290[profile .test ]
231291opt-level = 1
232292debug = true
233293
294+ # Super-fast dev profile for rapid iteration
295+ [profile .fast-dev ]
296+ inherits = " dev"
297+ opt-level = 0
298+ incremental = true
299+ codegen-units = 256
300+ debug = 1 # Line numbers only, not full debug info
301+ lto = false
302+ panic = " unwind"
303+
234304# Size-optimized release profile for smallest possible binaries
235305[profile .release-size ]
236306inherits = " release"
0 commit comments