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

Add support for both native Dart enums and class enums at the same time #18

Merged
merged 4 commits into from Aug 4, 2022

Conversation

jerel
Copy link
Owner

@jerel jerel commented Aug 4, 2022

Previously a project would generate all classes if project.with_c_style_enums(false) was set or all Dart enums if it was true. This change makes project.with_c_style_enums(true) (the default) behave such that it generates Dart enums for simple Rust enums and generates classes for Rust enums that contain data.

@jerel
Copy link
Owner Author

jerel commented Aug 4, 2022

Fixes #9

@jerel jerel merged commit 6d1832d into main Aug 4, 2022
@jerel jerel deleted the dart-enums branch August 4, 2022 21:54
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.

None yet

1 participant