Cargo Features

askama_shared = { version = "0.12.2", default-features = false, features = ["config", "json", "markdown", "yaml", "humansize", "num-traits", "percent-encoding"] }
default = config, humansize, num-traits, percent-encoding

These default features are set whenever askama_shared is added without default-features = false somewhere in the dependency tree.

config default = serde, toml
json = serde, serde_json

Enables json of askama_escape

markdown = comrak

Affects filters::markdown

yaml = serde, serde_yaml

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.

comrak markdown?

Enables comrak ^0.12

humansize default

Enables humansize ^1.1.0

Affects filters::filesizeformat

num-traits default

Affects filters::into_f64, filters::into_isize, filters::abs

serde config json? yaml?
serde_json json?
serde_yaml yaml?

Enables serde_yaml ^0.8

toml config

Enables toml ^0.5

percent-encoding default

Affects filters::urlencode, filters::urlencode_strict