Cargo Features

[dependencies]
bindgen = { version = "0.69.1", default-features = false, features = ["logging", "static", "runtime", "which-rustfmt", "experimental", "prettyplease"] }
default = logging, prettyplease, runtime, which-rustfmt

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

logging default

Enables log

static

Enables static of clang-sys

runtime default

Enables runtime of clang-sys

which-rustfmt default

Dynamically discover a rustfmt binary using the which crate

Enables which ^4.2.1

experimental

Enables annotate-snippets

Affects callbacks::ParseCallbacks.wrap_as_variadic_fn

__cli

The following features are for internal use and they shouldn't be used if you're not hacking on bindgen Features used by bindgen-cli

Affects callbacks::ParseCallbacks.cli_args

Features from optional dependencies

prettyplease default

With verbatim