Cargo Features

[dependencies]
volga = { version = "0.5.3", default-features = false, features = ["full", "http1", "http2", "di", "middleware", "multipart", "problem-details", "static-files", "tls", "tracing", "ws", "compression-full", "compression-brotli", "compression-gzip", "compression-zstd", "decompression-full", "decompression-brotli", "decompression-gzip", "decompression-zstd"] }
default = http1

Default HTTP/1 only server

full = compression-full, decompression-full, di, http1, http2, middleware, multipart, problem-details, static-files, tls, tracing, ws

HTTP/1 and HTTP/2 server

http1 default full?

Enables httpdate and http1 of hyper and hyper-util

hyper:

HTTP versions

http2 full?

Enables httpdate, http2 of hyper and hyper-util

di full?

Affects volga::di

middleware compression-brotli? compression-gzip? compression-zstd? decompression-brotli? decompression-gzip? decompression-zstd? full? tls? tracing?

Affects volga::middleware

multipart full?

Enables multer

Affects args::multipart

problem-details full?

Affects error::problem

static-files full?

Enables chrono, handlebars, and sha1

Affects app::env, fs::static_files, args::host_env

tls full? = middleware

Enables tokio-rustls

Affects volga::tls

tracing full? = middleware

Enables tracing

Affects volga::tracing

ws full?

Enables base64, sha1, and tokio-tungstenite

Affects volga::ws

compression-full full? = compression-brotli, compression-gzip, compression-zstd

Affects middleware::compress

compression-brotli compression-full? = middleware

Enables brotli of async-compression

optional

Affects middleware::compress

compression-gzip compression-full? = middleware

Enables gzip and zlib of async-compression

Affects middleware::compress

compression-zstd compression-full? = middleware

Enables zstd of async-compression

Affects middleware::compress

decompression-full full? = decompression-brotli, decompression-gzip, decompression-zstd

Affects middleware::decompress

decompression-brotli decompression-full? = middleware

Enables brotli of async-compression

Affects middleware::decompress

decompression-gzip decompression-full? = middleware

Enables gzip and zlib of async-compression

Affects middleware::decompress

decompression-zstd decompression-full? = middleware

Enables zstd of async-compression

Affects middleware::decompress

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.

async-compression compression-brotli? compression-gzip? compression-zstd? decompression-brotli? decompression-gzip? decompression-zstd?