Cargo Features
[dependencies]
viz-handlers = { version = "0.10.0", default-features = false, features = ["serve", "embed", "prometheus", "internal-logs"] }
- default = serve
-
The
serve
feature is set by default wheneverviz-handlers
is added without
somewhere in the dependency tree.default-features = false - serve default
-
Enables tokio-stream, fs and io-util of tokio, io of tokio-util and http-body, mime_guess, and percent-encoding
mime_guess:
serve & embed
Affects
viz-handlers::serve
… - embed
-
Enables hex, http-body-util, mime_guess, and rust-embed
Affects
viz-handlers::embed
… - prometheus = internal-logs
-
Enables http-body-util, opentelemetry-prometheus, and prometheus
Affects
viz-handlers::prometheus
… - internal-logs prometheus? = tracing
-
Enables internal-logs of opentelemetry
OpenTelemetry
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.