Skip to content

Extract shared contract type spec emission - #1963

Closed
leighmcculloch wants to merge 1 commit into
mainfrom
extract-shared-type-spec-gen
Closed

Extract shared contract type spec emission#1963
leighmcculloch wants to merge 1 commit into
mainfrom
extract-shared-type-spec-gen

Conversation

@leighmcculloch

@leighmcculloch leighmcculloch commented Jul 29, 2026

Copy link
Copy Markdown
Member

What

Move the identical spec-emission block copied across the struct, tuple struct, enum, enum int, and error enum derives into one spec::type_spec helper.

Why

Five copies of the same __SPEC_XDR_TYPE_* static and spec_xdr() const fn had to be edited in lockstep on every change to how type specs are emitted.

Known limitations

N/A

@leighmcculloch

Copy link
Copy Markdown
Member Author

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