Cargo Features
[dependencies]
raft-proto = { version = "0.7.0", default-features = false, features = ["protobuf-codec", "prost-codec"] }
- default = protobuf-codec
-
The
protobuf-codec
feature is set by default wheneverraft-proto
is added without
somewhere in the dependency tree.default-features = false - protobuf-codec default = bytes
-
Enables bytes of protobuf ^2, protobuf-codec of protobuf-build ^0.14
- prost-codec build = lazy_static, prost
-
Enables prost-codec of protobuf-build ^0.14
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.