Skip to content

Remove default full feature to avoid unnecessary UI deps #35

@sungaoyong

Description

@sungaoyong

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions