Cargo Features

[dependencies]
pprof2 = { version = "0.13.1", default-features = false, features = ["cpp", "flamegraph", "frame-pointer", "prost-codec", "criterion"] }
default = cpp

The cpp feature is set by default whenever pprof2 is added without default-features = false somewhere in the dependency tree.

cpp default

Enables cpp of symbolic-demangle

flamegraph = inferno
frame-pointer

Affects backtrace::frame_pointer

prost-codec = prost, prost-build, prost-derive, sha2

Affects pprof2::protos

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.

inferno flamegraph?
prost prost-codec?
prost-derive prost-codec?
prost-build build prost-codec?
sha2 build prost-codec?
criterion implicit feature

Enables criterion

criterion:

Statistics-driven micro-benchmarking library

Affects pprof2::criterion