Cargo Features

[dependencies]
protobuf-build = { version = "0.15.1", default-features = false, features = ["protobuf-codec", "grpcio-protobuf-codec", "prost-codec", "grpcio-prost-codec"] }
default = protobuf-codec

The protobuf-codec feature is set by default whenever protobuf-build is added without default-features = false somewhere in the dependency tree.

protobuf-codec default grpcio-protobuf-codec? = protobuf-codegen

Enables with-bytes of protobuf ^2

grpcio-protobuf-codec = protobuf-codec

Enables protobuf-codec of grpcio-compiler

prost-codec grpcio-prost-codec? = proc-macro2, prost-build, quote, syn
grpcio-prost-codec = prost-codec

Enables prost-codec of grpcio-compiler

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features.

proc-macro2 prost-codec?
protobuf protobuf-codec

Enables protobuf ^2

protobuf-codegen protobuf-codec

Enables protobuf-codegen ^2

grpcio-compiler grpcio-prost-codec? grpcio-protobuf-codec?
prost-build prost-codec?

Enables prost-build ^0.11

syn prost-codec?

Enables syn ^1.0

quote prost-codec?