-
Notifications
You must be signed in to change notification settings - Fork 66
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
Minified code option #556
Comments
I'm reluctant to strip out documentation that comes from the schema itself. Perhaps you're reacting to the inclusion of the schemas themselves in the docs? I added that thinking it was neat, but it certainly adds to the LoC count. What's your goal with reducing the amount of code? I wouldn't think that comments would materially impact build times for example. |
Sorry for the late reply, my use case is that I auto generate a schema from older game binary files which are somewhat inconsistent, so the result is a really bloated schema (LOC: 30k with docs, 4k without) which unfortunately slows down rust-analyzer a lot. For now, I'm using a simple python script to remove the docs, which works just fine for me. Otherwise I really like the generated docs. |
The default inclusion of the schema in the docs also makes a trip from Of course, a roundtrip from |
It'd be helpful to allow options to completely/partially minify the generated code. Especially docs can bloat up the code a lot. So I'd suggest we add an option to generate code without docs.
The text was updated successfully, but these errors were encountered: