perf: optimize workspace dependencies for faster builds#542
Merged
Conversation
- Remove 100+ unused dependencies identified by cargo-machete - Upgrade cortex-app-server from axum 0.7 to 0.8 (workspace version) - Upgrade cortex-lsp to use workspace dependencies (reqwest, tokio, serde, etc.) - Consolidate tokio versions across feature crates to use workspace reference - Reduce Cargo.lock by ~1400 lines Dependency metrics: - Before: 3958 dependency tree lines - After: 3257 dependency tree lines (~18% reduction) - Duplicate packages reduced from 180+ to ~160 Affected crates (54 files changed): - Core: cortex-cli, cortex-engine, cortex-app-server - Utils: cortex-utils-git, cortex-utils-string, cortex-utils-pty, cortex-utils-cache, cortex-utils-image - Features: cortex-plugins, cortex-otel, cortex-sandbox, cortex-execpolicy, cortex-lsp, cortex-core, cortex-commands, cortex-login, cortex-common, cortex-skills, cortex-feedback, cortex-tui, cortex-ghost, cortex-compact, cortex-batch, cortex-review, cortex-resume, cortex-share, cortex-ratelimits, cortex-experimental, cortex-migrations, cortex-linux-sandbox, cortex-windows-sandbox, cortex-shell-snapshot, cortex-exec, cortex-collab, cortex-network-proxy, cortex-mcp-server, cortex-prompt-harness, cortex-protocol, cortex-update, cortex-slack, cortex-tui-capture, cortex-tui-components - GUI: cortex-gui, cortex-desktop-cli - OpenTUI: opentui-terminal, opentui-buffer, opentui-layout, opentui-syntax
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR optimizes the workspace dependencies to significantly reduce build times and dependency footprint.
Changes
Metrics
Affected Crates (54 files)
Testing