Cargo Features

[dependencies]
bindgen = { version = "0.69.4", 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 ^0.9.1

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

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.

prettyplease default