Cargo Features

[dependencies]
omnipaxos = { version = "0.2.2", default-features = false, features = ["batch_accept", "logging", "toml_config", "macros", "unicache"] }
default = batch_accept, macros

These default features are set whenever omnipaxos is added without default-features = false somewhere in the dependency tree.

batch_accept default
logging = slog, slog-async, slog-term

Affects omni_paxos::ServerConfig.logger_file_path, omni_paxos::ServerConfig.custom_logger, utils::logger

toml_config = serde, toml
macros default = omnipaxos_macros

Affects omnipaxos::macros

unicache = linked_hash_set, lru, num-traits

Affects omnipaxos::unicache, messages::AcceptSync.unicache, messages::sequence_paxos.EncodedAcceptDecide, unicache::lfu_cache, unicache::lru_cache

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.

slog logging?
slog-term logging?
slog-async logging?
serde toml_config?

Affects lru_cache::LRUniCache, unicache::Encoded, unicache::Encodable, unicache::NotEncodable, unicache::DefaultEncodable

toml toml_config?

Enables toml ^0.7.3

omnipaxos_macros macros
lru unicache?

Enables lru ^0.11.0

num-traits unicache?
linked_hash_set unicache?