From 5dc1f0fc098d7ae04e3acc456ee93edffa5ed19b Mon Sep 17 00:00:00 2001 From: Jannik Obermann <50554200+jannik4@users.noreply.github.com> Date: Sat, 15 Jan 2022 05:40:24 +0100 Subject: [PATCH] Fix json/yaml features --- askama/Cargo.toml | 4 ++-- askama_derive/Cargo.toml | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/askama/Cargo.toml b/askama/Cargo.toml index 076f7e98a..281e23237 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 5369935b3..1f5c09973 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 = []