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

refactored grammers-tl-gen to generate each of the types, functions and enums to a separate file #311

Merged
merged 1 commit into from
Feb 12, 2025

Conversation

YouKnow-sys
Copy link
Contributor

@YouKnow-sys YouKnow-sys commented Feb 11, 2025

this PR will modify the tl-gen so it generate each of types, functions and enums to a separate file, the reason I did this is, if we have all of them in a single file the resulted generated file will be so big and that will cause some problems with RA.

I did found some strange problems while doing these changes, like if we add doc comments (//!) to start of the generated rust source and then include that file in another file, the rust compiler will give us a error and complain that we can't use these comments here... that's why I no longer add the license and top doc comment directly to the source file when generating, instead I manually added them to the actual module that generated sources will be included in.

I also fixed the small bug after the recent User type changes.

@YouKnow-sys
Copy link
Contributor Author

all done, also I rebased my changes so the history is clean

@Lonami Lonami merged commit 4712a77 into Lonami:master Feb 12, 2025
1 check passed
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.

2 participants