Skip to content

Add Fork derive macro for enum forking and unzipping#184

Open
kishore08-07 wants to merge 1 commit intoopen-rmf:mainfrom
kishore08-07:enum
Open

Add Fork derive macro for enum forking and unzipping#184
kishore08-07 wants to merge 1 commit intoopen-rmf:mainfrom
kishore08-07:enum

Conversation

@kishore08-07
Copy link

@kishore08-07 kishore08-07 commented Mar 17, 2026

New feature implementation

Implemented feature

This PR implements #144 , It introduces a procedural macro that enables forking and unzipping for any user-defined enum type, extending the existing support for Result and Option.

Implementation description

  • Implements a Fork derive macro to auto-generate Unzippable for enums.
  • Exposes ForkUnzip operation and related APIs for downstream use.
  • Adds runtime tests for enum forking/unzipping.
  • Includes concise inline documentation and rustdoc for new APIs and macro logic.
  • All changes validated with passing tests.

GenAI Use

We follow OSRA's policy on GenAI tools

  • I used a GenAI tool in this PR.
  • I did not use GenAI

Generated-by:
GPT-4.1

Signed-off-by: kishore08-07 <kishorebsm8@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Inbox

Development

Successfully merging this pull request may close these issues.

1 participant