Closed
[WIP] Add JSON Structure to Rust conversion implementation#70
Conversation
Co-authored-by: clemensv <542030+clemensv@users.noreply.github.com>
Copilot stopped work on behalf of
clemensv due to an error
November 20, 2025 08:04
Owner
Additional RequirementsDocumentationThe README.md file needs to be updated to include documentation for this new conversion feature, following the pattern established for existing conversions. TestingAll tests must follow the established testing patterns:
This follows the pattern established for the Avro conversion tests in the repository. |
Copilot stopped work on behalf of
clemensv due to an error
November 20, 2025 09:26
Owner
|
Closing duplicate PR. Keeping the newer PR #94 for this issue. |
This file contains hidden or 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
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.
Plan: Implement structuretorust - JSON Structure to Rust Conversion
Based on exploration of the codebase, I will implement
structuretorustfollowing these patterns:Implementation Checklist
Create
avrotize/structuretorust.pymodule following patterns from:avrotorust.pyfor Rust code generation and templatesstructuretocsharp.pyandstructuretopython.pyfor JSON Structure schema handlingCreate Jinja templates in
avrotize/structuretorust/directory:dataclass_struct.rs.jinja- for struct generationdataclass_enum.rs.jinja- for enum generationdataclass_union.rs.jinja- for union/choice typesImplement type mappings for JSON Structure Core types:
Support JSON Structure features:
Register CLI commands in
commands.jsonfor:s2rust- Convert JSON Structure to RustRegister functions in
__init__.py:convert_structure_to_rustconvert_structure_schema_to_rustCreate comprehensive tests in
test/test_structuretorust.py:Generate
Cargo.tomlandlib.rsfor Rust projectsSupport Serde annotations for JSON serialization
Key Design Decisions
$refresolution, schema registry, and abstract type validation fromstructuretocsharp.pyOriginal prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.