Cargo Features

[dependencies]
utoipa-swagger-ui = { version = "8.0.3", default-features = false, features = ["debug", "debug-embed", "reqwest", "url", "vendored", "actix-web", "rocket", "axum"] }
default = url

The url feature is set by default whenever utoipa-swagger-ui is added without default-features = false somewhere in the dependency tree.

debug
debug-embed

Enables debug-embed of rust-embed

reqwest build

Enables reqwest

enabled optionally to allow rust only build with expense of bigger dependency tree and platform independent build. By default curl system package is tried for downloading the Swagger UI.

url build default

Enables url

vendored build

Enables utoipa-swagger-ui-vendored

Features from optional dependencies

actix-web implicit feature

Enables actix-web

actix-web:

Actix Web is a powerful, pragmatic, and extremely fast web framework for Rust

Affects utoipa-swagger-ui::SwaggerUi

rocket implicit feature

Enables rocket

rocket:

Web framework with a focus on usability, security, extensibility, and speed

Affects utoipa-swagger-ui::SwaggerUi

axum implicit feature

Enables axum

axum:

Web framework that focuses on ergonomics and modularity

Affects utoipa-swagger-ui::SwaggerUi