Cargo Features

[dependencies]
askama = { version = "0.13.0", default-features = false, features = ["std", "alloc", "full", "blocks", "code-in-doc", "config", "derive", "serde_json", "urlencode"] }
default full? = config, derive, std, urlencode

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

Enables optional askama_derive

needed by feature "derive"

std default serde_json? = alloc

Enables std of optional askama_derive and optional percent-encoding

percent-encoding:

needed by feature "urlencode"

and std of optional serde and optional serde_json

serde:

needed by feature "serde_json"

Affects askama::Template.write_into, askama::Template.write_into_with_values, askama::DynTemplate.dyn_write_into, askama::DynTemplate.dyn_write_into_with_values

alloc std

Enables alloc of optional askama_derive, optional percent-encoding, optional serde, and optional serde_json

Affects alloc::trim, askama::Template.render, askama::Template.render_with_values, askama::DynTemplate.dyn_render, askama::DynTemplate.dyn_render_with_values

full = blocks, code-in-doc, default, serde_json

Enables full of optional askama_derive

blocks full?

Enables blocks of optional askama_derive

code-in-doc full?

Enables code-in-doc of optional askama_derive

config default

Enables config of optional askama_derive

derive default = askama_derive
serde_json full? = std

Enables serde and serde_json, serde_json of optional askama_derive

urlencode default

Enables percent-encoding, urlencode of optional askama_derive

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.

askama_derive derive