Skip to content

Dependency audit#413

Open
teunbrand wants to merge 3 commits intoposit-dev:mainfrom
teunbrand:dependency_audit
Open

Dependency audit#413
teunbrand wants to merge 3 commits intoposit-dev:mainfrom
teunbrand:dependency_audit

Conversation

@teunbrand
Copy link
Copy Markdown
Collaborator

I had claude do a little audit, write down a table of dependencies here with some findings.
This was then distilled down to a few recommendations listed here.
Then had it implement its recommendations.
Transitive dependencies go from 591 to 432.

I plan on reverting 43492f3 and 95283dd, but they are here now for your perusal so you can follow along.

teunbrand and others added 3 commits April 30, 2026 17:18
Systematic audit of all 42 external dependencies across the five workspace
Cargo.toml files, documenting why each is used, transitive dep counts,
unique deps, enabled vs available features, and whether all enabled
features are needed. Identifies several actionable savings (unused deps,
unnecessary feature flags).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Prioritised list of actionable findings from the workspace dependency
audit, ordered by effort-to-impact ratio.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Remove `proptest` (unused dev-dep), `tokio-test` (unused dev-dep),
  `csv` (unused dep in ggsql-wasm)
- Remove placeholder deps with no implementation: `postgres`, `plotters`,
  `ggplot2` feature flags
- Disable `prompt` on `odbc-api` (drops ~55 winit deps)
- Disable `resolve-http` on `jsonschema` (drops ~30 reqwest/rustls deps)
- Disable `named_from_str` on `palette` (drops phf v0.11 family)
- Remove unused `functions`/`window` features from `rusqlite`
- Remove unused `ipc` feature from `arrow` and empty `ipc` feature flag

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@teunbrand teunbrand marked this pull request as ready for review April 30, 2026 16:39
@teunbrand teunbrand requested review from georgestagg and thomasp85 and removed request for thomasp85 April 30, 2026 16:39
Copy link
Copy Markdown
Collaborator

@thomasp85 thomasp85 left a comment

Choose a reason for hiding this comment

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

LGTM

Comment thread audit-recommendations.md
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.

I don't think we should commit these .md files.

Comment thread audit.md
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.

I don't think we should commit these .md files.

Copy link
Copy Markdown
Collaborator

@georgestagg georgestagg left a comment

Choose a reason for hiding this comment

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

Other than the committed .md files, LGTM!

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.

3 participants