Cargo Features

LocustDB has no features set by default.

locustdb = { version = "0.3.4", features = ["enable_lz4", "enable_rocksdb"] }
enable_lz4 = lz4

Affects mem_store::lz4

enable_rocksdb = capnp, capnpc, rocksdb

Affects disk_store::rocksdb

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features.

capnp enable_rocksdb?

Enables capnp ^0.12

capnpc enable_rocksdb? build

Enables capnpc ^0.12

lz4 enable_lz4?
rocksdb enable_rocksdb?

Enables rocksdb ^0.10.1