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
somewhere in the dependency tree.default-features = false - state default
- limits default
- query default
- form default
- json default
- multipart default
- params default
-
Enables cookie-signed of viz-core
- session default = cookie, cookie-private
- websocket
- sse
- fs
- csrf = cookie, cookie-private
- cors
- 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?
- 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