Skip to content

ci: reject unused dependencies - #336

Merged
ivila merged 2 commits into
apache:mainfrom
ivila:deps/remove-unused-dependencies
Nov 3, 2026
Merged

ivila merged 2 commits into
apache:mainfrom
ivila:deps/remove-unused-dependencies

Conversation

@ivila

@ivila ivila commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

Remove dependencies that are not referenced by their crates and add a cargo-machete job so new unused entries fail CI.

Replace the last lazy_static use with std::sync::LazyLock, which is available in the std-only TLS server TA. Keep cfg_block, whose conditional imports are clearer than repeated cfg attributes.

Drop libc from the CA examples, strum and uuid where unused, and clean the unused cargo-optee and eth_wallet dependencies. Refresh the affected lockfiles and fix the formatting issues found in eth_wallet.

Remove dependencies that are not referenced by their crates and add a
cargo-machete job so new unused entries fail CI.

Replace the last lazy_static use with std::sync::LazyLock, which is
available in the std-only TLS server TA. Keep cfg_block, whose
conditional imports are clearer than repeated cfg attributes.

Drop libc from the CA examples, strum and uuid where unused, and clean
the unused cargo-optee and eth_wallet dependencies. Refresh the affected
lockfiles and fix the formatting issues found in eth_wallet.
@ivila ivila added the ci label Nov 3, 2026
Cache the Cargo registry download cache and index in the Rust build
jobs. Only crate tarballs are cached; target directories are left out
because they exceed the repository cache quota.

Install rustup without the default stable toolchain and remove the
uninstall/install cycle from setup.sh. The pinned toolchain from
rust-toolchain.toml is installed afterwards.

Do not change make parallelism; Cargo still uses the existing -j2 to
avoid excessive concurrent compilation.
@ivila
ivila force-pushed the deps/remove-unused-dependencies branch from 3472626 to e8db12c Compare November 3, 2026 10:03
@ivila
ivila merged commit c13b660 into apache:main Nov 3, 2026
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant