Cargo Features

[dependencies]
circuitbreaker-rs = { version = "0.1.1", default-features = false, features = ["std", "async", "prometheus", "tracing"] }
default = std

The std feature is set by default whenever circuitbreaker-rs is added without default-features = false somewhere in the dependency tree.

std default
async = futures, tokio

Affects hook::async_hooks

prometheus = prometheus-client
tracing = tracing-core, tracing-subscriber

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 async?

Enables tokio

Optional dependencies

futures async?
prometheus-client prometheus?

Enables prometheus-client ^0.22

tracing-core tracing?
tracing-subscriber tracing?