Cargo Features

tonic-build = { version = "0.10.2", default-features = false, features = ["prost", "cleanup-markdown", "transport"] }
default = prost, transport

These default features are set whenever tonic-build is added without default-features = false somewhere in the dependency tree.

prost default cleanup-markdown? = prost-build
cleanup-markdown = prost

Enables cleanup-markdown of prost-build

transport default

Features from optional dependencies

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

prost-build prost

With default (format)