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 whenever viz-handlers is added without default-features = false somewhere in the dependency tree.

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.

tokio serve
tokio-util serve
opentelemetry prometheus?

Enables opentelemetry ^0.24