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 whenever raft-proto is added without default-features = false somewhere in the dependency tree.

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.

bytes protobuf-codec
lazy_static prost-codec?
prost prost-codec?

Enables prost ^0.11