Cargo Features

[dependencies]
viz = { version = "0.9.0", default-features = false, features = ["state", "limits", "query", "form", "json", "multipart", "params", "cookie", "cookie-signed", "session", "websocket", "sse", "fs", "csrf", "cors", "compression", "http1", "http2", "unix-socket", "macros", "handlers", "serve", "embed", "otel", "otel-tracing", "otel-metrics", "otel-prometheus", "rustls", "native-tls", "cookie-private"] }
default = cookie, form, http1, json, limits, multipart, params, query, session, state

These default features are set whenever viz is added without default-features = false somewhere in the dependency tree.

state default

Enables state of viz-core

limits default

Enables limits of viz-core

query default

Enables query of viz-core

form default

Enables form of viz-core

json default

Enables json of viz-core

multipart default

Enables multipart of viz-core

params default

Enables params of viz-core

Enables cookie of viz-core

Enables cookie-signed of viz-core

session default = cookie, cookie-private

Enables session of viz-core

websocket

Enables websocket of viz-core

sse

Enables sse of viz-core

fs

Enables fs of viz-core

csrf = cookie, cookie-private

Enables csrf of viz-core

cors

Enables cors of viz-core

compression

Enables compression of viz-core

http1 default

Enables http1 of hyper and hyper-util

hyper:

HTTP versions

http2

Enables http2 of hyper and hyper-util

unix-socket
macros

Enables viz-macros

handlers embed? otel-prometheus? serve?

Enables viz-handlers

serve = handlers

Enables serve of optional viz-handlers

embed = handlers

Enables embed of optional viz-handlers

otel otel-metrics? otel-tracing?

Enables otel of viz-core

otel-tracing = otel

Enables otel-tracing of viz-core

otel-metrics = otel

Enables otel-metrics of viz-core

otel-prometheus = handlers

Enables prometheus of optional viz-handlers

rustls

Enables futures-util, rustls-pemfile, and tokio-rustls

Affects tls::rustls, server::tls

native-tls

Enables futures-util and tokio-native-tls

Affects tls::native_tls, server::tls

Enables cookie-private of viz-core