Cargo Features

[dependencies]
foyer = { version = "0.22.3", default-features = false, features = ["clap", "serde", "nightly", "tracing", "deadlock", "strict_assertions", "runtime-tokio", "runtime-madsim-tokio", "test_utils"] }
default = runtime-tokio

The runtime-tokio feature is set by default whenever foyer is added without default-features = false somewhere in the dependency tree.

clap

Enables clap of foyer-storage

serde

Enables serde of foyer-common and foyer-storage

nightly

Enables nightly of foyer-memory and foyer-storage

tracing

Enables fastrace, tracing of foyer-common, foyer-memory, and foyer-storage

Affects cache::HybridCacheOptions.tracing_options

deadlock

Enables deadlock of foyer-storage

strict_assertions

Enables strict_assertions of foyer-common, foyer-memory, and foyer-storage

runtime-tokio default

Enables runtime-tokio of foyer-tokio

foyer-tokio:

feature gate to swtich between tokio runtime and madsim-tokio runtime.

runtime-madsim-tokio

Enables runtime-madsim-tokio of foyer-tokio

test_utils

Enables test_utils of foyer-storage