Skip to content

refactor: reorganize workspace dependencies — versions in workspace, features in crates#1959

Merged
bug-ops merged 1 commit intomainfrom
refactor/cargo-dependencies-format
Mar 18, 2026
Merged

refactor: reorganize workspace dependencies — versions in workspace, features in crates#1959
bug-ops merged 1 commit intomainfrom
refactor/cargo-dependencies-format

Conversation

@bug-ops
Copy link
Owner

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

Summary

Reorganized dependency structure to improve clarity and maintainability:

  • Workspace dependencies now contain only versions (single source of truth)
  • Features are declared in individual crates where they're used
  • All dependencies sorted alphabetically across all manifests
  • Added default-features = false where needed in workspace root

Changes

  • [workspace.dependencies]: versions only, plus default-features = false for 16 crates
  • Each crate's [dependencies]: declares its own features explicitly
  • Root [dependencies]: features for CLI (clap, tracing-subscriber)
  • All 14 manifest files alphabetically sorted

Validation

  • cargo +nightly fmt --check passes
  • cargo clippy --workspace --features full -- -D warnings passes
  • ✅ All 5625 tests pass
  • ✅ Full workspace compiles without errors

Benefits

  1. Simplified version management: single point to update dependency versions
  2. Explicit feature requirements: each crate shows exactly what it needs
  3. Better maintainability: consistent alphabetical organization
  4. No behavioral changes: rebuild produces identical artifacts

…features in crates

- Move all features from [workspace.dependencies] to individual crates
- Add default-features = false where needed in workspace root
- Sort all dependencies alphabetically in Cargo.toml files:
  - workspace.dependencies (root)
  - [dependencies] sections (all 13 crates)
  - dev-dependencies
- Keep workspace as single source of truth for versions
- Each crate declares only features it uses

This cleanup simplifies dependency management and makes feature
requirements explicit per crate. All tests pass (5625), formatting
and clippy checks succeed with full feature set.
@github-actions github-actions bot added refactor Code refactoring without functional changes llm zeph-llm crate (Ollama, Claude) skills zeph-skills crate memory zeph-memory crate (SQLite) size/L Large PR (201-500 lines) channels zeph-channels crate (Telegram) rust Rust code changes core zeph-core crate dependencies Dependency updates and removed refactor Code refactoring without functional changes labels Mar 17, 2026
@bug-ops bug-ops enabled auto-merge (squash) March 18, 2026 00:01
@bug-ops bug-ops merged commit 721fde0 into main Mar 18, 2026
20 checks passed
@bug-ops bug-ops deleted the refactor/cargo-dependencies-format branch March 18, 2026 00:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

channels zeph-channels crate (Telegram) core zeph-core crate dependencies Dependency updates llm zeph-llm crate (Ollama, Claude) memory zeph-memory crate (SQLite) rust Rust code changes size/L Large PR (201-500 lines) skills zeph-skills crate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant