Skip to content

fix(rust): apply consistent pascalcase naming for nested types#3548

Merged
chaokunyang merged 1 commit intoapache:mainfrom
utafrali:fix/issue-3547-rust-generator-emits-conflicting-module-
Apr 12, 2026
Merged

fix(rust): apply consistent pascalcase naming for nested types#3548
chaokunyang merged 1 commit intoapache:mainfrom
utafrali:fix/issue-3547-rust-generator-emits-conflicting-module-

Conversation

@utafrali
Copy link
Copy Markdown
Contributor

Why?

Rust generator was creating naming conflicts for nested types where module paths and struct names could collide and cause compilation errors.

What does this PR do?

Applies consistent PascalCase naming to type names when resolving nested type references and building struct definitions. Added tests for nested type scenarios.

Related issues

Fixes #3547

AI Contribution Checklist (if applicable)

N/A

Does this PR introduce any user-facing change?

Yes, code that previously failed to compile due to naming conflicts will now generate valid Rust code.

Benchmark (if perf-related)

N/A

Copy link
Copy Markdown
Collaborator

@chaokunyang chaokunyang left a comment

Choose a reason for hiding this comment

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

LGTM

@chaokunyang chaokunyang merged commit 7dbaabc into apache:main Apr 12, 2026
62 checks passed
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.

Rust generator emits conflicting module and struct names for messages with nested types

2 participants