Skip to content

Conversation

@ansasaki
Copy link
Contributor

This adds a workflow that runs cargo-machete do detect unused crates.
The currently unused crates are also dropped from the crates Cargo.toml files

@codecov
Copy link

codecov bot commented Jan 12, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 57.11%. Comparing base (776f1aa) to head (593b243).
⚠️ Report is 5 commits behind head on master.

Additional details and impacted files
Flag Coverage Δ
e2e-testsuite 37.37% <ø> (ø)
upstream-unit-tests 65.96% <ø> (-0.04%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.
see 5 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@ansasaki ansasaki force-pushed the machete branch 2 times, most recently from 53629d7 to 918758b Compare January 13, 2026 10:35
Remove the following crates that are unused in keylime-agent:

- glob
- libc
- reqwest
- serde_derive

Signed-off-by: Anderson Toshiyuki Sasaki <[email protected]>
Drop the following unused crates in keylime-push-model-agent:

- assert_cmd
- base64
- predicates
- serde
- serde_derive
- static_assertions

Signed-off-by: Anderson Toshiyuki Sasaki <[email protected]>
Drop the following unused crates in keylime lib:

- once_cell
- retry-policies
- serde_derive
- url

Signed-off-by: Anderson Toshiyuki Sasaki <[email protected]>
The new workflow uses cargo-machete to detect unused crates.

Signed-off-by: Anderson Toshiyuki Sasaki <[email protected]>
With the changes on cargo files, it is necessary to update the specfiles
used to build the packages on COPR for Fedora and CentOS Stream.

Signed-off-by: Anderson Toshiyuki Sasaki <[email protected]>
Copy link
Contributor

@sarroutbi sarroutbi left a comment

Choose a reason for hiding this comment

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

LGTM

@ansasaki ansasaki merged commit d18cf24 into keylime:master Jan 14, 2026
20 of 21 checks passed
@ansasaki ansasaki deleted the machete branch January 14, 2026 17:16
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.

4 participants