-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Description
The crate currently enables full by default, which pulls in all UIs (Swagger, Redoc, Scalar) even if only one is needed.
Currently, the loco-openapi crate enables the full feature by default via:
[features] default = ["full"] full = ["swagger", "redoc", "scalar"]
This means that when users depend on loco-openapi without specifying features:
I Test with
loco-openapi = { version = "0.1.2", features = ["scalar"] }
All three OpenAPI UIs (utoipa-swagger-ui, utoipa-redoc, and utoipa-scalar) are activated by default — even if the user only wants to use one (e.g., scalar).
Please remove default = ["full"] from [features] so users can opt-in explicitly:
loco-openapi = { features = ["scalar"] } # only Scalar
This reduces bloat and gives better control. Suggest releasing next version
NexVeridian and GoCoder7
Metadata
Metadata
Assignees
Labels
No labels