Cargo Features

[dependencies]
pagecache = { version = "0.19.4", default-features = false, features = ["lock_free_delays", "check_snapshot_integrity", "compression", "failpoints", "no_metrics", "no_logs", "no_inline", "event_log", "measure_allocs"] }
default = no_metrics

The no_metrics feature is set by default whenever pagecache is added without default-features = false somewhere in the dependency tree.

lock_free_delays = rand, rand_chacha, rand_distr

Enables deadlock_detection of parking_lot ^0.9.0

check_snapshot_integrity
compression = zstd
failpoints = fail, rand

Enables failpoints of fail ^0.3.0

no_metrics default
no_logs

Enables max_level_off of log

no_inline
event_log

Affects config::ConfigInner.event_log, pagecache::event_log

measure_allocs

Affects metrics::Metrics.allocations, metrics::Metrics.allocated_bytes

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.

zstd compression?

Enables zstd ^0.4.28

fail failpoints?

Enables fail ^0.3.0

rand failpoints? lock_free_delays?

Enables rand ^0.7.0

rand_chacha lock_free_delays?

Enables rand_chacha ^0.2.1

rand_distr lock_free_delays?

Enables rand_distr ^0.2.1