Cargo Features
[dependencies]
viz-core = { 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", "otel", "otel-tracing", "otel-metrics", "cookie-private"] }
- default = cookie, form, json, limits, multipart, params, query, session, state
-
These default features are set whenever
viz-core
is added without
somewhere in the dependency tree.default-features = false - state default
-
Affects
request::RequestExt.state
,request::RequestExt.set_state
… - limits default
-
Affects
middleware::limits
,request::RequestLimitsExt
… - query default
-
Enables serde and serde_urlencoded
Affects
request::RequestExt.query
… - form default
-
Enables serde and serde_urlencoded
Affects
request::RequestExt.form
,request::RequestLimitsExt.form_with_limit
… - json default session
-
Enables serde and serde_json
Affects
request::RequestExt.json
,request::RequestLimitsExt.json_with_limit
,response::ResponseExt.json
… - multipart default
-
Enables form-data
Affects
request::RequestExt.multipart
,request::RequestLimitsExt.multipart_with_limit
… - params default
-
Enables serde
Affects
request::RequestExt.params
,request::RequestExt.param
,request::RequestExt.route_info
,middleware::otel
… -
Enables cookie
Affects
middleware::cookie
,middleware::helper
,request::RequestExt.cookies
,request::RequestExt.cookie
… -
Enables signed of optional cookie
Affects
cookie::CookieKey
… - session default = cookie-private, json
-
Enables sessions-core
Affects
middleware::session
,request::RequestExt.session
… - websocket
-
Enables tokio-tungstenite and rt of tokio
Tokio
- sse
-
Enables tokio-stream, time of tokio
- fs
-
Enables fs of tokio, io of tokio-util
Affects
response::ResponseExt.download
… - csrf = cookie-private
-
getrandom:
CSRF
Affects
middleware::csrf
… - cors
-
Affects
middleware::cors
… - compression
-
Enables io of tokio-util and async-compression
Compression
Affects
middleware::compression
… - otel otel-metrics? otel-tracing?
-
Enables opentelemetry ^0.24 and opentelemetry-semantic-conventions ^0.16
opentelemetry:
OpenTelemetry
Affects
middleware::otel
… - otel-tracing = otel
-
Enables trace of optional opentelemetry ^0.24
Affects
otel::tracing
… - otel-metrics = otel
-
Enables metrics of optional opentelemetry ^0.24
Affects
otel::metrics
… -
Enables private of optional cookie
Affects
helper::Cookieable
,cookie::CookieKey
…
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 fs? sse? websocket?
- tokio-util compression? fs?