Cargo Features
[dependencies]
spawn-access-control = { version = "0.1.12", default-features = false, features = ["wasm", "async", "sync", "distributed", "metrics", "enterprise"] }
- default = async, wasm
-
These default features are set whenever
spawn-access-control
is added without
somewhere in the dependency tree.default-features = false Enables moka
- wasm default = console_error_panic_hook, serde-wasm-bindgen, wasm-bindgen, web-sys
- async default enterprise? = lettre, tokio
- sync
-
moka:
Enable this feature to use
moka::sync::{Cache, SegmentedCache}
- distributed enterprise? = redis
- metrics enterprise? = opentelemetry, prometheus
-
Affects
metrics::MetricsCollector
… - enterprise = async, distributed, metrics
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.