Skip to content

Conversation

@nilslice
Copy link
Member

@nilslice nilslice commented Sep 3, 2024

Partially completes #2

After looking at it more, I think the paths are way simpler to leave in the types, and not that hard for the end-user to remove & add a use themselves. There's a few different contexts in which this bindgen would need to check if a use statement is needed, and it's a bit complex to abstract, and alternatively super verbose to check around all the edges.

@nilslice nilslice requested a review from zshipko September 3, 2024 21:49
jsonWrappedRustType,
capitalize,
camelToSnakeCase
camelToSnakeCase,
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just editor formatting

Copy link

@zshipko zshipko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! I agree that leaving the full path to types is fine for now - in the case of serde_json::Value it might be more helpful to know Value type is coming from serde_json without having to check (although checking isn't so hard either)

@nilslice nilslice merged commit cd6ace1 into main Sep 3, 2024
@nilslice nilslice deleted the more-comments branch September 3, 2024 22:32
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.

3 participants