From 86fd2f4f8b1e32803fd7acc43e98dbbb137156b5 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: 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 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 = [] -- cgit