Cargo Features

[dependencies]
salvo_extra = { version = "0.74.2", default-features = false, features = ["full", "affix-state", "basic-auth", "caching-headers", "catch-panic", "force-https", "logging", "concurrency-limiter", "size-limiter", "sse", "trailing-slash", "timeout", "websocket", "request-id", "tower-compat", "tokio-util"] }
default = full

The full feature is set by default whenever salvo_extra is added without default-features = false somewhere in the dependency tree.

full default = affix-state, basic-auth, caching-headers, catch-panic, concurrency-limiter, force-https, logging, request-id, size-limiter, sse, timeout, tower-compat, trailing-slash, websocket
affix-state full
basic-auth full

Enables base64

caching-headers full

Enables etag and tracing

catch-panic full

Enables futures-util and tracing

force-https full

Enables tracing, rustls of salvo_core

logging full

Enables tracing

concurrency-limiter full = tokio

Enables tracing

size-limiter full
sse full = tokio

Enables futures-util, pin-project, serde, serde_json, and tracing

trailing-slash full

Enables tracing

timeout full

Enables macros of tokio

websocket full = tokio, tokio-tungstenite

Enables futures-util, hyper, and tracing

request-id full

Enables ulid

tower-compat full

Enables futures-util, http-body-util, tower, and tracing

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.

tokio concurrency-limiter? sse? timeout? websocket?
tokio-tungstenite websocket?
tokio-util implicit feature

Enables tokio-util

tokio-util:

Additional utilities for working with Tokio