Skip to content

chore(llm): remove redundant schema feature gate from zeph-llm#2108

Merged
bug-ops merged 1 commit intomainfrom
feat-issue-2100-remove-schema-gate
Mar 22, 2026
Merged

chore(llm): remove redundant schema feature gate from zeph-llm#2108
bug-ops merged 1 commit intomainfrom
feat-issue-2100-remove-schema-gate

Conversation

@bug-ops
Copy link
Owner

@bug-ops bug-ops commented Mar 22, 2026

Summary

  • Make schemars a non-optional dependency in crates/zeph-llm/Cargo.toml
  • Remove schema feature declaration and default = ["schema"]
  • Remove 37 #[cfg(feature = "schema")] annotations across 10 source files
  • No behavioral change: schemars was always compiled via zeph-core, zeph-tools, zeph-skills, zeph-mcp, zeph-acp, zeph-orchestration, and zeph-memory

Test plan

  • cargo +nightly fmt --check — PASS
  • cargo clippy --workspace --features full -- -D warnings — PASS
  • cargo nextest run --workspace --features full --lib --bins — PASS (6365 tests)

Closes #2100

schemars is a non-optional dependency in 7 other workspace crates
(zeph-core, zeph-tools, zeph-skills, zeph-mcp, zeph-acp,
zeph-orchestration, zeph-memory), so the schema feature in zeph-llm
was always effectively enabled. Make schemars non-optional and remove
37 #[cfg(feature = "schema")] annotations across 10 files.

Closes #2100
@bug-ops bug-ops added llm zeph-llm crate (Ollama, Claude) size/M Medium PR (51-200 lines) chore Maintenance tasks labels Mar 22, 2026
@github-actions github-actions bot added documentation Improvements or additions to documentation rust Rust code changes dependencies Dependency updates labels Mar 22, 2026
@bug-ops bug-ops enabled auto-merge (squash) March 22, 2026 01:04
@bug-ops bug-ops merged commit 1f7a0d4 into main Mar 22, 2026
25 checks passed
@bug-ops bug-ops deleted the feat-issue-2100-remove-schema-gate branch March 22, 2026 01:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chore Maintenance tasks dependencies Dependency updates documentation Improvements or additions to documentation llm zeph-llm crate (Ollama, Claude) rust Rust code changes size/M Medium PR (51-200 lines)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove redundant schema feature gate from zeph-llm

1 participant