From 4940b5dd5e792811491f1c3c3b1c70c8177c7e02 Mon Sep 17 00:00:00 2001 From: Michael Alyn Miller Date: Sat, 27 Nov 2021 20:59:51 -0800 Subject: Add Axum integration --- askama_derive/Cargo.toml | 1 + askama_derive/src/lib.rs | 1 + 2 files changed, 2 insertions(+) (limited to 'askama_derive') diff --git a/askama_derive/Cargo.toml b/askama_derive/Cargo.toml index 92c05f3..19e327b 100644 --- a/askama_derive/Cargo.toml +++ b/askama_derive/Cargo.toml @@ -17,6 +17,7 @@ proc-macro = true config = ["askama_shared/config"] actix-web = [] +axum = [] gotham = [] iron = [] mendes = [] diff --git a/askama_derive/src/lib.rs b/askama_derive/src/lib.rs index f2bee66..35070fe 100644 --- a/askama_derive/src/lib.rs +++ b/askama_derive/src/lib.rs @@ -111,6 +111,7 @@ fn find_used_templates( const INTEGRATIONS: Integrations = Integrations { actix: cfg!(feature = "actix-web"), + axum: cfg!(feature = "axum"), gotham: cfg!(feature = "gotham"), iron: cfg!(feature = "iron"), mendes: cfg!(feature = "mendes"), -- cgit