Cargo Features

Tera has no features set by default.

[dependencies]
tera = { version = "2.0.0-alpha.7", features = ["fast_hash", "preserve_order", "unicode", "no_fmt", "fast_escape", "fast", "glob_fs"] }
fast_hash fast?

Use hashbrown with ahash hashing to improve performance

Enables serde of ahash

Crates for speedup

preserve_order

Keep order of insertion for Value

Enables indexmap

Optional deps

Affects value::Map

unicode

If we want Tera to work with graphemes clusters rather than utf-8 characters when iterating on strings

Enables unicode-segmentation

no_fmt fast?

Use itoa to format numbers (instead of std::fmt)

Enables itoa

fast_escape fast?

Use a faster HTML escape than the default one

Enables pulldown-cmark-escape

fast = fast_escape, fast_hash, no_fmt

Improve performance by adding extra dependencies

glob_fs

Loads files disks using a glob

Enables globset and walkdir