Cargo Features
[dependencies]
raft = { version = "0.7.0", default-features = false, features = ["failpoints", "protobuf-codec", "prost-codec", "default-logger"] }
- default = default-logger, protobuf-codec
-
These default features are set whenever
raft
is added without
somewhere in the dependency tree.default-features = false - failpoints
-
Enable failpoints
Enables failpoints of fail ^0.4
- protobuf-codec default = bytes
-
Enables protobuf-codec of raft-proto
- prost-codec
-
Enables prost-codec of raft-proto
- default-logger default = slog-envlogger, slog-stdlog, slog-term
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.
Make sure to synchronize updates with Harness.