Skip to content

Enum derive support#46

Open
ShapelessCat wants to merge 34 commits intomainfrom
enum-derive-support
Open

Enum derive support#46
ShapelessCat wants to merge 34 commits intomainfrom
enum-derive-support

Conversation

@ShapelessCat
Copy link
Copy Markdown
Owner

No description provided.

ShapelessCat and others added 7 commits March 28, 2026 18:26
Moved the duplicated `build_binding_ident` function from
`from_impl/enums.rs` and `recallable_impl/enums.rs` into
`internal/enums/ir.rs` and exported it via `internal/enums.rs` to keep
the code DRY.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Replaced inefficient `TokenStream` roundtripping in `ModelItem::parse`
with direct conversion to `syn::DeriveInput` using `Into`.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…items

Moved `#[automatically_derived]` out of the top-level output quote block
in `lib.rs` and placed it directly on the implementations and types in
their respective generation functions. Also simplified the optional
`from_impl` codegen using `then_some` and removed redundant `.into_iter()`
calls.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Validate code examples
- Run tests and validate code examples as regression
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