Skip to content

Allowing utoipa-swagger-ui crate to embed a trimmed-down version #1560

@joaoantoniocardoso

Description

@joaoantoniocardoso

Hi,

I was trying out this crate and noticed that my binary grew by more than 10 MB after I set up the utoipa-swagger-ui crate.

Checking the files needed to run it, I could trim it down to 1.8 MB (or 486 KB if I store it gzip-compressed): [index.html, index.css, swagger-ui.css, favicon-16x16.png, favicon-32x32.png, swagger-ui-bundle.js, swagger-ui-standalone-preset.js, swagger-initializer.js].

It would be nice if this were available as a feature flag or an env var.

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions