Cargo Features
[dependencies]
viz-handlers = { version = "0.9.0", default-features = false, features = ["serve", "embed", "prometheus"] }
- 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
-
Enables http-body-util, opentelemetry-prometheus and prometheus and metrics of opentelemetry ^0.24
OpenTelemetry
Affects
viz-handlers::prometheus
…
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.