Cargo Features
[dependencies]
serf-core = { version = "0.2.0", default-features = false, features = ["metrics", "encryption", "async-graphql", "serde", "test"] }
- default = metrics
-
The
metrics
feature is set by default wheneverserf-core
is added without
somewhere in the dependency tree.default-features = false - metrics default
-
Enables metrics, metrics of memberlist-core, metrics of serf-types
- encryption = base64, serde
-
Enables encryption of memberlist-core and serf-types
Affects
serf-core::key_manager
,serf::serf_write_keyring_file
,tests::estimate_max_keys_in_list_key_response_factor
,tests::key_list_key_response_with_correct_size
… - async-graphql
-
Enables async-graphql
- serde encryption?
-
Enables humantime-serde, serde, serde of indexmap and memberlist-core, serde of serf-types, smallvec, and smol_str
- test = paste, tempfile, tracing-subscriber
-
Enables test of memberlist-core
memberlist-core:
expose all tests fn for users who want to use other runtime see memberlist-wasm for more examples about how to use those tests fn
Affects
crate_event::CrateEventType
,serf-core::tests
,base::tests
…
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.
- base64 encryption?
- paste test?
-
Enables paste
test features
- tracing-subscriber test?
- tempfile test?