Cargo Features

inferno = { version = "0.11.19", default-features = false, features = ["cli", "multithreaded", "nameattr"] }

debug = true # and uncomment this line.

default = cli, multithreaded, nameattr

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

cli default = clap, env_logger

Required by inferno-collapse-dtrace, inferno-collapse-ghcprof, inferno-collapse-guess, inferno-collapse-perf, inferno-collapse-recursive, inferno-collapse-sample, inferno-collapse-vsprof, inferno-collapse-vtune, inferno-diff-folded and inferno-flamegraph binaries

multithreaded default = crossbeam-channel, crossbeam-utils, dashmap

Affects common::DEFAULT_NTHREADS, common::CollapsePrivate.collapse_multi_threaded

nameattr default = indexmap

Affects flamegraph::Options.func_frameattrs

Features from optional dependencies

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

crossbeam-utils multithreaded
crossbeam-channel multithreaded
dashmap multithreaded
env_logger cli

Enables env_logger ^0.10

indexmap nameattr
clap cli