Cargo Features

Handlebars has no features set by default.

handlebars = { version = "5.0.0-beta.5", features = ["dir_source", "script_helper", "no_logging", "rust-embed"] }
dir_source = walkdir

Affects registry::DirectorySourceOptions

script_helper = rhai

Affects error::ScriptError


Affects macros::logging

Features from optional dependencies

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

walkdir dir_source?
rhai script_helper?

With sync, serde and default features

rust-embed implicit feature

With include-exclude