Fix Rust codegen for CLI 1.0.84 schemas - #2631
Conversation
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
|
One or more custom setup steps configured for this repository failed during this Copilot code review run: Setup steps run before each review. If the review above is missing context, or no review was posted at all, the failing step above may be the cause. See the workflow run for failure details, fix your setup steps configuration, and re-request a review. Note You can configure setup steps for Copilot code review separately from Copilot cloud agent with a |
There was a problem hiding this comment.
Copilot review overview
🟢 Approval recommended
The generator changes are focused, preserve the stable Rust API facade, and include appropriate regression coverage.
Review tier: Balanced
Findings: None
What changed in this PR
Updates Rust code generation to remain compatible with CLI 1.0.84 schemas while preserving stable public RPC paths.
Changes:
- Resolves the enum
Unknownnaming collision. - Publicly re-exports shared schema types.
- Adds focused codegen regression tests.
| File | Description |
|---|---|
scripts/codegen/rust.ts |
Adds enum overrides and shared-type re-exports. |
rust/src/generated/api_types.rs |
Refreshes generated import visibility. |
nodejs/test/rust-codegen.test.ts |
Covers both regressions. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
This comment has been minimized.
This comment has been minimized.
…te-runtime-update
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
This comment has been minimized.
This comment has been minimized.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
|
Reviewed PR #2631 (Fix Rust codegen for CLI 1.0.84 schemas) for cross-SDK consistency. All changes are scoped appropriately and do not introduce cross-language inconsistencies:
No public API was added, changed, or removed in this PR, so there is nothing to reconcile across the six SDK implementations. No inline review comments were necessary.
|
Summary
CatalogTrustEligibilityvalueunknowntoUnknownValue, preservingUnknownas Rust's forward-compatible serde fallbackcrate::rpctype paths survive schema ownership changesValidation
1.0.84-51.0.84-5typesGenerated by Copilot