Cargo Features
[dependencies]
askama = { version = "0.12.1", default-features = false, features = ["config", "humansize", "markdown", "num-traits", "serde-json", "serde-yaml", "urlencode", "with-actix-web", "with-axum", "with-gotham", "with-hyper", "with-mendes", "with-rocket", "with-tide", "with-warp", "mime", "mime_guess"] }
- default = config, humansize, num-traits, urlencode
-
These default features are set whenever
askama
is added without
somewhere in the dependency tree.default-features = false - config default
-
Enables config of askama_derive
- humansize default = dep_humansize
-
Enables humansize of askama_derive
Affects
filters::filesizeformat
… - markdown = comrak
-
Enables markdown of askama_derive
Affects
filters::markdown
… - num-traits default = dep_num_traits
-
Enables num-traits of askama_derive
Affects
filters::into_f64
,filters::into_isize
,filters::abs
… - serde-json = serde, serde_json
-
Enables serde-json of askama_derive, json of askama_escape
- serde-yaml = serde, serde_yaml
-
Enables serde-yaml of askama_derive
- urlencode default = percent-encoding
-
Enables urlencode of askama_derive
- with-actix-web
-
Enables with-actix-web of askama_derive
- with-axum
-
Enables with-axum of askama_derive
- with-gotham
-
Enables with-gotham of askama_derive
- with-hyper
-
Enables with-hyper of askama_derive
- with-mendes
-
Enables with-mendes of askama_derive
- with-rocket
-
Enables with-rocket of askama_derive
- with-tide
-
Enables with-tide of askama_derive
- with-warp
-
Enables with-warp of askama_derive
- mime
-
deprecated
- mime_guess
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.18
- dep_humansize humansize
-
Enables humansize
- dep_num_traits num-traits
-
Enables num-traits
- percent-encoding urlencode
-
Affects
filters::urlencode
,filters::urlencode_strict
… - serde serde-json? serde-yaml?
- serde_json serde-json?
- serde_yaml serde-yaml?