-
Notifications
You must be signed in to change notification settings - Fork 190
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
Utoipa-swagger-ui seems to be linking in Swagger UI to the build by default #1051
Comments
I guess it would be reasonable to investigate what gets included to the release binary. Yet no matter of using It just might be that the Swagger UI is that big. It actually contains a bunch of files. If want something more lightweight you should try scalar or rapidoc or redoc (redoc does not allow executing those paths from the UI). |
I think it'd be reasonable to add a PSA about binary size to the doc page of utoipa-swagger-ui. I might give you exact figures on the binary size increase (but the ~12-13MB increase approximation is pretty accurate for my own project) later with an empty project. |
Uncompressed, Swagger UI is ~17MB. Compressed, it's ~4.5MB. So I guess something like UPX should do the job on the final binary. But UPX does not work on my specific binary... Update: my local build was linked with |
Sure, we could add heads up notification to README.md of |
Or we could compress the Swagger UI assets in the binary. There are some crates to do that. |
Version of utoipa-swagger-ui: 7.1.1-beta.0
Vendored feature is not enabled, including the package increases the release binary by ~12MB. Is this intended behavior?
The text was updated successfully, but these errors were encountered: