Cargo Features

MiniJinja-Contrib has no features set by default.

[dependencies]
minijinja-contrib = { version = "2.6.0", features = ["pycompat", "datetime", "timezone", "rand", "wordcount", "wordwrap", "unicode_wordwrap"] }
pycompat

Enables builtins of minijinja

minijinja:

Engine Features

Affects minijinja-contrib::pycompat

datetime = time

Affects globals::now

timezone = time-tz
rand

Enables rand

Affects filters::random, globals::randrange, globals::lipsum

wordcount = unicode_categories

Affects filters::wordcount

wordwrap unicode_wordwrap? = textwrap

Affects filters::wordwrap

unicode_wordwrap = wordwrap

Enables unicode-linebreak and unicode-width of textwrap

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.

textwrap unicode_wordwrap? wordwrap?
time datetime?
time-tz timezone?

Enables time-tz ^1.0.3

unicode_categories wordcount?