Cargo Features
[dependencies]
memberlist-core = { version = "0.2.1", default-features = false, features = ["metrics", "encryption", "serde", "rkyv", "test"] }
- default = metrics
-
The
metrics
feature is set by default whenevermemberlist-core
is added without
somewhere in the dependency tree.default-features = false - metrics default
-
Enables metrics of memberlist-types and metrics ^0.22
metrics feature
- encryption
-
Enables encryption of memberlist-types
Affects
transport::Transport.keyring
,transport::Transport.encryption_enabled
… - serde = base64, humantime-serde
-
Enables serde of bytes, memberlist-types, and nodecraft and serde
serde feature
- rkyv
-
Enables rkyv of memberlist-types and nodecraft and rkyv ^0.7
rkyv feature
- test = pnet, tracing-subscriber
-
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
memberlist-core::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 serde?
- humantime-serde serde?
- tracing-subscriber test?
-
Enables tracing-subscriber
test feature
- pnet test?
-
Enables pnet ^0.34