Skip to content

refactor(rust): narrow Clippy exceptions and box large v2 payloads - #2972

Merged
benbrandt merged 2 commits into
mainfrom
benbrandt/rust-lint-audit
Nov 21, 2026
Merged

benbrandt merged 2 commits into
mainfrom
benbrandt/rust-lint-audit

Conversation

@benbrandt

@benbrandt benbrandt commented Nov 21, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Remove obsolete Clippy suppressions and use expect for the remaining fixed JSON-RPC shapes and large v1 variants. The v1 variants retain their public payload types and have next-major TODOs. Refactor the schema generator rather than suppress its enum-size and function-length warnings.
  • In the opt-in v2 Rust API, box the unknown config-option value and the tool-call diff payload. This does not change JSON, the published schemas, or stable v1 signatures. Mark the v1 batch wrapper and its error for removal in the next major.

Verification

  • npm run generate produced no diff; npm run check passed.
  • Built all targets/all features and tested the generator for each of the other three published feature combinations. Ran the schema tests with just unstable_protocol_v2 in addition to the all-features suite.
  • Checked Rust 1.88 and nightly rustdoc. Clippy passed with warnings denied on native and on a 32-bit WebAssembly schema build.

Companion: Rust SDK lint audit and documentation checks.

@benbrandt
benbrandt requested a review from a team as a code owner November 21, 2026 13:12
@benbrandt
benbrandt merged commit f3c5521 into main Nov 21, 2026
15 checks passed
@benbrandt
benbrandt deleted the benbrandt/rust-lint-audit branch November 21, 2026 13:20
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