Skip to content

ci: fail on unused dependencies (cargo-udeps)#23

Merged
ammario merged 3 commits intomainfrom
blink/ci-unused-deps
Sep 11, 2025
Merged

ci: fail on unused dependencies (cargo-udeps)#23
ammario merged 3 commits intomainfrom
blink/ci-unused-deps

Conversation

@blink-so
Copy link
Copy Markdown
Contributor

@blink-so blink-so Bot commented Sep 11, 2025

Add a new job to the tests workflow that checks for unused dependencies using cargo-udeps and fails the workflow if any are detected.

  • Installs cargo-udeps via taiki-e/install-action
  • Uses nightly toolchain for cargo udeps (required by cargo-udeps internals)
  • Runs cargo +nightly udeps --all-targets --all-features
  • Treats any "unused" hits as failure

This runs on push/PR via tests.yml and will also apply to publishes since publish.yml reuses the tests workflow.

Refs:

blink-so Bot added 3 commits September 11, 2025 01:56
…used dependencies are detected.\n\nCo-authored-by: ammario <7416144+ammario@users.noreply.github.com>
…tly toolchain for udeps\n- Avoid shell regex grouping; grep on captured output instead\n\nCo-authored-by: ammario <7416144+ammario@users.noreply.github.com>
… rustls-pemfile, serde, serde_yaml, serde_json\n\nCo-authored-by: ammario <7416144+ammario@users.noreply.github.com>
@ammario ammario marked this pull request as ready for review September 11, 2025 02:12
@ammario ammario merged commit e742e81 into main Sep 11, 2025
7 checks passed
@ammario ammario deleted the blink/ci-unused-deps branch September 11, 2025 02:12
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.

1 participant