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 generating enums in Rust with code generation #67

Open
3 tasks
desaikd opened this issue Nov 17, 2023 · 0 comments
Open
3 tasks

Add support for generating enums in Rust with code generation #67

desaikd opened this issue Nov 17, 2023 · 0 comments
Labels
code generation Improvements for code generation subcommand `generate`

Comments

@desaikd
Copy link
Contributor

desaikd commented Nov 17, 2023

Add support to generate struct based on Ion Schema. This will include supporting conversion of various struct related constraints in ISL.

Following ISL constraints will be supported with struct generation:

  • valid_values (Java style enums for string/symbol values)
  • one_of (Parameterized enum)

Action Items for this implementation:

  • Define templates for enums in Rust
  • Define constraint mapping for valid_values and one_of constraints in ISL to struct in Rust
  • Implement code generation for read and write API for enum in Rust
@desaikd desaikd added the code generation Improvements for code generation subcommand `generate` label Nov 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code generation Improvements for code generation subcommand `generate`
Projects
Development

No branches or pull requests

1 participant