Cargo Features

tera = { version = "1.19.1", default-features = false, features = ["builtins", "urlencode", "preserve_order", "date-locale"] }
default = builtins

The builtins feature is set by default whenever tera is added without default-features = false somewhere in the dependency tree.

builtins default date-locale? = chrono, chrono-tz, humansize, rand, slug, urlencode

Affects common::date, number::filesizeformat, string::slugify, functions::now, functions::get_random

urlencode builtins = percent-encoding

Affects string::urlencode, string::urlencode_strict


Enables preserve_order of serde_json

date-locale = builtins

Enables unstable-locales of chrono

used in date format filter

Features from optional dependencies

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

slug builtins

percent-encoding urlencode?

With default (std)

humansize builtins

chrono builtins

With std and clock

chrono-tz builtins

With default (std)

rand builtins

With default features