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 default-features = false somewhere in the dependency tree.

Enables moka

wasm default = console_error_panic_hook, serde-wasm-bindgen, wasm-bindgen, web-sys
async default enterprise? = lettre, tokio
sync

Enables sync of moka

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.

tokio async
redis distributed?

Enables redis ^0.23

prometheus metrics?
opentelemetry metrics?

Enables opentelemetry ^0.20

lettre async
wasm-bindgen wasm
web-sys wasm
console_error_panic_hook wasm
serde-wasm-bindgen wasm