Add CI workflow for xdr-generator-rust - #577
Open
leighmcculloch wants to merge 4 commits into
Open
Conversation
leighmcculloch
marked this pull request as ready for review
August 24, 2026 02:30
leighmcculloch
enabled auto-merge
August 24, 2026 02:30
Contributor
There was a problem hiding this comment.
Pull request overview
Adds dedicated CI coverage for the separate xdr-generator-rust workspace and updates it for Rust 1.85 lint compliance.
Changes:
- Adds formatting, Clippy, MSRV, and test jobs.
- Bumps workspace crates to Rust 1.85.
- Applies Clippy-driven refactors and documentation fixes.
Reviewed changes
Copilot reviewed 22 out of 22 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
.github/workflows/xdr-generator-rust.yml |
Adds generator workspace CI. |
xdr-generator-rust/xdr-parser/Cargo.toml |
Bumps parser MSRV. |
xdr-generator-rust/xdr-parser/src/ast.rs |
Resolves AST lint findings. |
xdr-generator-rust/xdr-parser/src/lexer.rs |
Improves lint annotations and error handling. |
xdr-generator-rust/xdr-parser/src/parser.rs |
Refactors parser for Clippy compliance. |
xdr-generator-rust/xdr-parser/src/types.rs |
Adds annotations and simplifies matches. |
xdr-generator-rust/xdr-parser/src/tests/lexer.rs |
Updates test formatting. |
xdr-generator-rust/xdr-parser/src/tests/parser.rs |
Updates parser tests for lint compliance. |
xdr-generator-rust/xdr-parser/src/tests/types.rs |
Updates type tests for lint compliance. |
xdr-generator-rust/generator/Cargo.toml |
Bumps generator MSRV. |
xdr-generator-rust/generator/src/generator.rs |
Resolves generator lint findings. |
xdr-generator-rust/generator/src/main.rs |
Documents CLI lint exemption. |
xdr-generator-rust/generator/src/naming.rs |
Improves rustdoc formatting. |
xdr-generator-rust/generator/src/options.rs |
Improves field documentation. |
xdr-generator-rust/generator/src/output.rs |
Documents boolean-heavy output structure. |
xdr-generator-rust/generator/src/tests/generator.rs |
Updates generator test formatting. |
xdr-generator-rust/generator/src/types.rs |
Simplifies type-mapping matches. |
xdr-generator-rust/generator-definitions-json/Cargo.toml |
Bumps JSON generator MSRV. |
xdr-generator-rust/generator-definitions-json/src/ir.rs |
Reformats and simplifies IR conversion. |
xdr-generator-rust/generator-definitions-json/src/main.rs |
Simplifies optional cfg filtering. |
xdr-generator-rust/generator-definitions-json/src/tests/cfg_filter.rs |
Updates cfg-filter tests. |
xdr-generator-rust/generator-definitions-json/src/tests/wire_size.rs |
Updates wire-size test formatting. |
Suppressed comments (1)
.github/workflows/xdr-generator-rust.yml:85
- This metadata query covers all three workspace packages, so the workspace MSRV is the highest member
rust_version, not the lowest. If member MSRVs diverge,minmakes the test job invoke Cargo with a compiler that another workspace member explicitly does not support. Select the maximum declared version here as well.
msrv="$(cargo metadata --manifest-path $MANIFEST_PATH --format-version 1 --no-deps | jq -r '.packages | map(.rust_version) | map(values) | min')"
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Add a CI workflow for the
xdr-generator-rustworkspace along with the lint fixes and MSRV bump to 1.85.0 needed to make it pass.Why
xdr-generator-rustis a separate Cargo workspace, so the root-level cargo invocations inrust.ymldo not exercise it, and the job that run thegeneratecommand only runscargo runand so never compiles the generator's#[cfg(test)]code.