Cargo Features
[dependencies]
ruserf-core = { version = "0.1.0", default-features = false, features = ["metrics", "encryption", "async-graphql", "serde", "test"] }
- default = metrics
-
The
metrics
feature is set by default wheneverruserf-core
is added without
somewhere in the dependency tree.default-features = false - metrics default
-
Enables metrics ^0.22, metrics of memberlist-core, metrics of ruserf-types
- encryption = base64, serde
-
Enables encryption of memberlist-core and ruserf-types
Affects
ruserf-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 smallvec and smol_str ^0.2, serde of indexmap, memberlist-core, and ruserf-types
- 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
,ruserf-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?