Cargo Features
[dependencies]
switchy_web_server = { version = "0.3.0", default-features = false, features = ["actix", "compress", "cors", "fail-on-warnings", "htmx", "openapi", "openapi-all", "openapi-rapidoc", "openapi-redoc", "openapi-scalar", "openapi-swagger-ui", "serde", "simulator", "static-files", "tls"] }
- default = actix, compress, cors, htmx, openapi-all, serde, tls
-
These default features are set whenever
switchy_web_serveris added withoutsomewhere in the dependency tree.default-features = false - actix default
-
Enables actix-http, actix-service, actix-test, and actix-web, actix of switchy_http_models
Affects
handler::HandlerSend,actix_impl::FlattenedRoute,actix_impl::flatten_scope_tree,actix_impl::ActixWebServer,actix_impl::ActixWebServerBuilder,actix_impl::ActixTestClient,actix_impl::ActixTestClientError,test_client::actix_impl… - compress default
- cors default
-
Enables actix-cors and switchy_web_server_cors
- fail-on-warnings
-
Enables fail-on-warnings of moosicbox_assert, optional switchy_fs, switchy_http_models, switchy_web_server_core, and optional switchy_web_server_cors
- htmx default
-
Enables actix-htmx
- openapi openapi-rapidoc? openapi-redoc? openapi-scalar? openapi-swagger-ui?
-
Enables utoipa
Affects
switchy_web_server::openapi… - openapi-all default = openapi-rapidoc, openapi-redoc, openapi-scalar, openapi-swagger-ui
- openapi-rapidoc openapi-all = openapi
-
Enables const_format and utoipa-rapidoc
- openapi-redoc openapi-all = openapi
-
Enables utoipa-redoc
- openapi-scalar openapi-all = openapi
-
Enables utoipa-scalar
- openapi-swagger-ui openapi-all = openapi
-
Enables const_format and utoipa-swagger-ui
- serde default
-
Enables serde_json, serde of switchy_http_models
Affects
extractors::query,extractors::json,extractors::path,extractors::header,from_request::Query,from_request::Json,response::TestResponseExt.assert_json_equals,response::TestResponseExt.assert_json_contains… - simulator
-
Enables simulator and tokio of switchy_fs
- static-files
-
Enables actix-files
- tls default
-
Enables openssl of optional actix-web
actix-web:
TLS via OpenSSL