Skip to content

chore(deps): remove 6 unused dependencies - #1470

Open
duncanista wants to merge 4 commits into
mainfrom
jordan.gonzalez/remove-unused-deps/feature
Open

duncanista wants to merge 4 commits into
mainfrom
jordan.gonzalez/remove-unused-deps/feature

Conversation

@duncanista

@duncanista duncanista commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

TL;DR: Removes 6 dependencies that no code uses: indexmap, serde-aux, lazy_static, log, ddsketch-agent and proptest.

Why: Less to compile, audit and keep up to date. The next PR (#1471) adds a CI check so that unused dependencies do not come back.

Overview

Jira: SVLS-9975

Stacked on #1469 (jordan.gonzalez/cargo-deny/feature).

  • Remove 6 dependencies that no code uses: indexmap, serde-aux, lazy_static, log,
    ddsketch-agent and the dev-dependency proptest. The lock drops bit-set, bit-vec,
    rusty-fork and wait-timeout, and LICENSE-3rdparty.csv drops the same 4 rows, so the
    required "Valid LICENSE-3rdparty.csv" check passes.
  • [package.metadata.cargo-machete] ignored lists the 4 crates that stay on purpose, with the
    reason in a comment: version bounds on transitive crates, aws-lc-rs reached through
    rustls::crypto, and serde_bytes used in a #[serde(with)] string. The next PR adds the
    gate that reads it.

Size: 15 core lines, 69 lines in total.

Testing

  • applies on the previous PR of the stack: pass
  • cargo metadata --locked: pass
  • cargo deny --locked check: pass
  • cargo machete: pass
  • dd-rust-license-tool check: pass
  • cargo clippy --workspace --all-targets --features default -- -D warnings: pass
  • cargo clippy --workspace --all-targets --features default,test-mode -- -D warnings: pass
  • Before this stack, the FIPS flavor compiled in Docker with the removal (compile_bottlecap.sh, arm64, FIPS=1).

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 28, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-29T23:18:03.683001Z f36a2d7 New commits
🔒 Security Review ✅ Completed 2026-10-29T23:17:46.121291Z f36a2d7 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@datadog-prod-us1-3

datadog-prod-us1-3 Bot commented Oct 28, 2026 •

Copy link
Copy Markdown

Pipelines

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: f36a2d7 | Docs | Give us feedback!

@duncanista duncanista changed the title [SVLS-9975] chore(deps): remove 6 unused dependencies chore(deps): remove 6 unused dependencies Oct 28, 2026
Base automatically changed from jordan.gonzalez/cargo-deny/feature to main October 29, 2026 18:49
Copilot AI balanced review requested due to automatic review settings October 29, 2026 23:13

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

There are no active review issues with the unused-dependency cleanup.

No open issues 🎉

What changed in this PR

Removes six unused direct dependencies from the Rust Lambda extension and prepares dependency metadata for the cargo-machete CI check planned in #1471.

Changes:

  • Removes five regular dependencies and the proptest dev-dependency.
  • Adds cargo-machete exclusions with comments explaining intentionally retained dependencies.
  • Updates the lockfile and removes four third-party license entries.
File Description
bottlecap/​LICENSE-3rdparty.csv Removes license entries for bit-set, bit-vec, rusty-fork, and wait-timeout.
bottlecap/​Cargo.toml Removes six unused dependencies and documents cargo-machete exclusions.
bottlecap/​Cargo.lock Updates dependency references and removes unused package versions and dependency edges.

Review effort: Balanced

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: f36a2d7e5b

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread bottlecap/Cargo.lock
checksum = "08807e080ed7f9d5433fa9b275196cfc35414f66a0c79d864dc51a0d825231a3"
dependencies = [
"bit-vec 0.8.0",
"bit-vec",

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Correct the claim that bit-set and bit-vec leave the lockfile

The PR summary says the lockfile drops bit-set and bit-vec, but this hunk only removes versions 0.8.0; versions 0.5.3 and 0.6.3 remain at bottlecap/Cargo.lock:417-430 through httpmock -> basic-cookies -> lalrpop. Update the summary to distinguish removing these crates from the production dependency graph from their continued presence in the dev-dependency lock graph.

AGENTS.md reference: AGENTS.md:L23-L23

Useful? React with 👍 / 👎.

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.

2 participants