-
Notifications
You must be signed in to change notification settings - Fork 16
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
Adds new model changes for Rust code generation #147
Merged
desaikd
merged 4 commits into
amazon-ion:new-model-changes
from
desaikd:new-model-changes-rust
Oct 2, 2024
Merged
Adds new model changes for Rust code generation #147
desaikd
merged 4 commits into
amazon-ion:new-model-changes
from
desaikd:new-model-changes-rust
Oct 2, 2024
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* Adds changes for using the new model * Adds changes for nested types to use template macros
* Add `string_representation` on `FullyQualifiedTypeReference` which will have namespace representated based on programming language * Modifies serializer for `AbstractDataType` to include ISL type name when serializing source `IslType`
zslayton
reviewed
Sep 30, 2024
popematt
reviewed
Oct 1, 2024
* Doc comment changes * Renames `has_no_name` to `is_anonymous` * Removes completed TODOs for rust templates
popematt
approved these changes
Oct 2, 2024
desaikd
added a commit
to desaikd/ion-cli
that referenced
this pull request
Nov 1, 2024
* Adds changes for Rust templates * Add `string_representation` on `FullyQualifiedTypeReference` which will have namespace represented based on programming language * Add tests for Rust code generation
desaikd
added a commit
that referenced
this pull request
Nov 1, 2024
* Adds new model changes for `Structure` (#138) * Adds new model changes for scalar (#143) * Adds changes for sequence data type (#144) * Adds tests for new model changes (#146) * Adds new model changes for Rust code generation (#147) * Adds changes for optional/required fields in Java code generation (#148) * Modifies generated setter API to take nested types instead of nested properties (#153) * Adds support for builder API generation in Java (#154) * Adds support for Java enum generation (#158) * Adds namespace fix for nested sequence and adds support for nested types in Sequence and Scalar ADT (#163) * Adds changes for nested type naming (#166) * Adds support for imports in code generation (#169)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Issue #136
Description of changes:
This PR adds new model changes for Rust code generation.
List of changes:
string_representation
onFullyQualifiedTypeReference
whichwill have namespace representated based on programming language
AbstractDataType
to include ISL type namewhen serializing source
IslType
Generated code:
The generated code still stays the same only the template changes to use the new model.
Generated Rust code can be found here.
Tests:
Add roundtrip tests for Rust code.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.