diff options
author | Jannik Obermann <50554200+jannik4@users.noreply.github.com> | 2022-01-15 05:40:24 +0100 |
---|---|---|
committer | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2022-01-15 10:41:01 +0100 |
commit | 86fd2f4f8b1e32803fd7acc43e98dbbb137156b5 (patch) | |
tree | 52cf418309477e99b613ab048c6589434475ddfe | |
parent | 77a477e7d6a9e4f0302c003cab417d873e4f62fd (diff) | |
download | askama-86fd2f4f8b1e32803fd7acc43e98dbbb137156b5.tar.gz askama-86fd2f4f8b1e32803fd7acc43e98dbbb137156b5.tar.bz2 askama-86fd2f4f8b1e32803fd7acc43e98dbbb137156b5.zip |
Fix json/yaml features
-rw-r--r-- | askama/Cargo.toml | 4 | ||||
-rw-r--r-- | askama_derive/Cargo.toml | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/askama/Cargo.toml b/askama/Cargo.toml index 076f7e9..281e232 100644 --- a/askama/Cargo.toml +++ b/askama/Cargo.toml @@ -20,8 +20,8 @@ default = ["config", "humansize", "num-traits", "urlencode"] config = ["askama_derive/config", "askama_shared/config"] humansize = ["askama_shared/humansize"] urlencode = ["askama_shared/percent-encoding"] -serde-json = ["askama_shared/json"] -serde-yaml = ["askama_shared/yaml"] +serde-json = ["askama_derive/json", "askama_shared/json"] +serde-yaml = ["askama_derive/yaml", "askama_shared/yaml"] num-traits = ["askama_shared/num-traits"] with-actix-web = ["askama_derive/actix-web"] with-axum = ["askama_derive/axum"] diff --git a/askama_derive/Cargo.toml b/askama_derive/Cargo.toml index 5369935..1f5c099 100644 --- a/askama_derive/Cargo.toml +++ b/askama_derive/Cargo.toml @@ -14,6 +14,8 @@ proc-macro = true [features] config = ["askama_shared/config"] +json = ["askama_shared/json"] +yaml = ["askama_shared/yaml"] actix-web = [] axum = [] |