Skip to content

chore(workspace): consolidate all shared dependencies#3815

Merged
louis030195 merged 2 commits into
screenpipe:mainfrom
divanshu-go:chore/consolidate-workspace-deps
Jun 10, 2026
Merged

chore(workspace): consolidate all shared dependencies#3815
louis030195 merged 2 commits into
screenpipe:mainfrom
divanshu-go:chore/consolidate-workspace-deps

Conversation

@divanshu-go

@divanshu-go divanshu-go commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Moves every repeated dependency across 19 workspace crates to [workspace.dependencies] in root Cargo.toml — versions are now declared once, crates use { workspace = true }

  • Adds cargo consolidate step to the optimize CI job in style.yml

@divanshu-go divanshu-go changed the title chore(workspace): consolidate all shared deps into [workspace.dependencies] chore(workspace): consolidate all shared dependencies Jun 4, 2026
@divanshu-go divanshu-go force-pushed the chore/consolidate-workspace-deps branch from b0aa01b to aa70503 Compare June 4, 2026 12:38

@louis030195 louis030195 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@divanshu-go very nice cleanup, makes workspace much easier to maintain

.github/workflows/style.yml:67 — cargo install cargo-consolidate is slow in ci, maybe use cargo-binstall or cache?

generated by the screenpipe pr-review pipe (https://screenpi.pe), not written by a human — reply and tag @louis030195 if it got something wrong.

Comment on lines -55 to +58
- name: Install cargo-audit
run: cargo install cargo-audit
- name: Install cargo tools
uses: taiki-e/install-action@v2
with:
tool: cargo-audit,cargo-deny,cargo-consolidate

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Before
image
  • After
image

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Time reduced by 4 min

@divanshu-go divanshu-go force-pushed the chore/consolidate-workspace-deps branch from dbea500 to fe29948 Compare June 4, 2026 15:22
@louis030195

louis030195 commented Jun 5, 2026

Copy link
Copy Markdown
Collaborator

@divanshu-go can ufix conflict

didy ou run the app with all those dependencies change and it work properly?

@louis030195 louis030195 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, love taiki-e action. @divanshu-go does this compile on windows/linux? workspace dep changes sometimes break cross-platform builds

generated by the screenpipe pr-review pipe (https://screenpi.pe), not written by a human — reply and tag @louis030195 if it got something wrong.

@louis030195

Copy link
Copy Markdown
Collaborator

@divanshu-go can you fix conflicts? a

@divanshu-go divanshu-go force-pushed the chore/consolidate-workspace-deps branch from fe29948 to 5ae90cc Compare June 9, 2026 23:21
@divanshu-go

Copy link
Copy Markdown
Contributor Author

@louis030195 Resolved all the conflicts.

Move hardcoded version strings for common deps (serde, anyhow, chrono,
tokio, sqlx, ort, dirs, rand, etc.) into [workspace.dependencies] in
the root Cargo.toml and the ee/sdk sub-workspace. Individual crates now
use `{ workspace = true }` so versions are pinned in one place.

Also updates style.yml to install cargo-consolidate via taiki-e and run
`cargo consolidate` as a CI check.
…, zbus, image

Add `default-features = false` to workspace entries for ort, tokenizers,
and zbus so per-crate `default-features = false` overrides are respected.
Remove the redundant `default-features = false` from screenpipe-rfdetr-mlx's
image dep (workspace default is fine there; the per-crate flag was already
being ignored).
@divanshu-go divanshu-go force-pushed the chore/consolidate-workspace-deps branch 2 times, most recently from a03ed95 to 70432ca Compare June 10, 2026 16:11
@divanshu-go divanshu-go requested a review from louis030195 June 10, 2026 16:34
@louis030195 louis030195 merged commit f50c259 into screenpipe:main Jun 10, 2026
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants