Cargo Features

[dependencies]
swagger-ui-dist = { version = "5.20.2", default-features = false, features = ["with-axum-07", "with-axum-08", "with-actix"] }
default = with-axum-08

The with-axum-08 feature is set by default whenever swagger-ui-dist is added without default-features = false somewhere in the dependency tree.

with-axum-07 = axum-07, axum-core-04
with-axum-08 default = axum-08, axum-core-05
with-actix = actix-web

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

axum-07 with-axum-07?

Enables axum ^0.7

Axum 0.7.x dependencies

Affects swagger-ui-dist::generate_routes

axum-core-04 with-axum-07?

Enables axum-core ^0.4

axum-08 with-axum-08

Enables axum

Axum 0.8.x dependencies

Affects swagger-ui-dist::generate_routes

axum-core-05 with-axum-08

Enables axum-core

actix-web with-actix?

Enables actix-web

Actix dependencies

Affects swagger-ui-dist::generate_scope