Cargo Features

[dependencies]
salvo_extra = { version = "0.67.1", default-features = false, features = ["full", "affix", "basic-auth", "caching-headers", "catch-panic", "logging", "concurrency-limiter", "size-limiter", "sse", "trailing-slash", "timeout", "websocket", "request-id", "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, basic-auth, caching-headers, catch-panic, concurrency-limiter, force-https, logging, request-id, size-limiter, sse, timeout, trailing-slash, websocket
affix full
basic-auth full

Enables base64

caching-headers full

Enables etag and tracing

catch-panic full

Enables futures-util and tracing

force-https 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

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