Skip to content

Conversation

@fvaleye
Copy link
Collaborator

@fvaleye fvaleye commented Aug 28, 2025

Description

Adding cargo machete to find and remove unused dependencies quickly in the CI.
The cargo machete has been run to identify and remove some unused dependencies.

A review should be done to ensure that flagged dependencies are truly unused and to avoid false positives.

Documentation

@fvaleye fvaleye added the binding/rust Issues for the Rust crate label Aug 28, 2025
@github-actions github-actions bot added the binding/python Issues for the Python package label Aug 28, 2025
@codecov
Copy link

codecov bot commented Aug 28, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 75.33%. Comparing base (1c63ee7) to head (5089cb3).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3713      +/-   ##
==========================================
+ Coverage   75.30%   75.33%   +0.03%     
==========================================
  Files         145      145              
  Lines       43773    43751      -22     
  Branches    43773    43751      -22     
==========================================
  Hits        32962    32962              
+ Misses       9217     9195      -22     
  Partials     1594     1594              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@fvaleye fvaleye force-pushed the chore/add-cargo-machete-in-ci branch from b9d6bf3 to 16f18bf Compare August 28, 2025 11:08
@fvaleye fvaleye force-pushed the chore/add-cargo-machete-in-ci branch from 16f18bf to 5089cb3 Compare August 28, 2025 11:11
Copy link
Collaborator

@roeap roeap left a comment

Choose a reason for hiding this comment

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

Did not know this existed - very useful 👍.

async-trait = { workspace = true }
bytes = { workspace = true }
futures = { workspace = true }
tracing = { workspace = true }
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think here @rtyler might say that adding logging to the crates is the way to go and every crate should have tracing as a required dependency :D.

That said, I am fairly sure we already have an issue to track this.

Comment on lines +170 to +171
[package.metadata.cargo-machete]
ignored = ["foyer"]
Copy link
Collaborator

Choose a reason for hiding this comment

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

we can remove this for now I think.

I believe this may have slipped though while i was working on #3440. It will get added back once we merge that PR, but then potentially also as optional.

@ion-elgreco ion-elgreco merged commit f3a2712 into delta-io:main Aug 28, 2025
29 checks passed
fvaleye added a commit to fvaleye/delta-rs that referenced this pull request Sep 12, 2025
…ies (delta-io#3713)

Adding `cargo machete` to find and remove unused dependencies quickly in
the CI.
The cargo machete has been run to identify and remove some unused
dependencies.

A review should be done to ensure that flagged dependencies are truly
unused and to avoid false positives.

- https://github.com/bnjbvr/cargo-machete

Signed-off-by: Florian Valeye <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

binding/python Issues for the Python package binding/rust Issues for the Rust crate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants