Skip to content

chore: drop unused thiserror and tower dependencies - #1

Open
usehoplite[bot] wants to merge 1 commit into
mainfrom
hoplite/thera-6b03067e
Open

chore: drop unused thiserror and tower dependencies#1
usehoplite[bot] wants to merge 1 commit into
mainfrom
hoplite/thera-6b03067e

Conversation

@usehoplite

@usehoplite usehoplite Bot commented Sep 2, 2026

Copy link
Copy Markdown

Summary

Audited every direct dependency in Cargo.toml against the source tree and removed the two that are provably unused:

  • thiserror (2.0) — zero references in src/ (repo-wide grep for thiserror matches only Cargo.toml). The crate stays in Cargo.lock only as a transitive dependency of other crates.
  • tower (0.5) — zero references in src/; it only appeared as an optional dep activated by the http feature. The http feature is simplified to ["dep:axum"]. tower remains in the lockfile as axum's own transitive dependency.

The regenerated Cargo.lock is minimal: exactly the two direct-dep edges for cloud-tools were removed, with no version drift for any other package.

All 18 remaining direct dependencies (tokio, reqwest, serde/serde_json, anyhow, tracing(-subscriber), rmcp, hmac/sha1/sha2/hex, jsonwebtoken, chrono, urlencoding, axum, quick-xml, futures) have real source references and were kept.

While running the CI validation chain, cargo fmt --check flagged two pre-existing import-order issues in src/clouds/aws/cloudwatch_logs.rs and src/clouds/aws/ec2.rs (confirmed to fail at HEAD before this change). They were normalized with cargo fmt so the repo's own CI gate passes.

Verification

Ran the same chain as the check job in .github/workflows/ci.yml, with Rust 1.98.0 stable:

  • cargo fmt --all --check — pass
  • cargo clippy --all-targets --all-features -- -D warnings — pass
  • cargo test --all-features — 20 passed, 0 failed
  • cargo build --release --locked --all-features — pass (lockfile consistent with trimmed manifest)

The npm wrapper (npm/package.json) declares zero dependencies and its scripts only use Node built-ins — nothing to audit on that side.

Open in Hoplite

thiserror and tower are declared in Cargo.toml but never referenced in
source. Remove them, regenerate the lockfile, and normalize the two
imports rustfmt flags so the CI fmt check passes.

Co-authored-by: ship fast <buildfastapps@gmail.com>
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.

0 participants