Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: FromVariant ToVariant derive proc macros #245

Closed
astrale-sharp opened this issue Apr 27, 2023 · 0 comments · Fixed by #246
Closed

Feature request: FromVariant ToVariant derive proc macros #245

astrale-sharp opened this issue Apr 27, 2023 · 0 comments · Fixed by #246
Labels
c: core Core components feature Adds functionality to the library

Comments

@astrale-sharp
Copy link
Contributor

astrale-sharp commented Apr 27, 2023

Hi! I intend to work on this,
For starters my objective is that you can write things like this :

#[derive(FromVariant, ToVariant)]
struct X(i32);
#[derive(FromVariant, ToVariant)]
struct Y {
    field: i32,
    #[variant(skip)]
    field2: Box<dyn SpecialTrait>,
}
#[derive(FromVariant, ToVariant)]
enum Z {
    Variant(i32),
    Variant2,
}
@Bromeon Bromeon added feature Adds functionality to the library c: core Core components labels Apr 27, 2023
@bors bors bot closed this as completed in 34f0ffe May 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c: core Core components feature Adds functionality to the library
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants