From 4c0388d11e1bafb85250b649ff610d3f9c7f9452 Mon Sep 17 00:00:00 2001 From: René Kijewski Date: Thu, 10 Mar 2022 08:44:35 +0100 Subject: Reduce askama_derive to a single re-export All the hard work in askama_derive was actually done in askama_shared. This PR removes the back-and-forth interaction between the two crates. Now askama_derive is a single re-export of `#[derive(Template)]` which has to be done in a proc_macro crate. This most likely means that askama_derive is "final", unless another derive template needs to be introduced in the future. --- askama_shared/src/lib.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'askama_shared/src/lib.rs') diff --git a/askama_shared/src/lib.rs b/askama_shared/src/lib.rs index 8a336bb..5a8facd 100644 --- a/askama_shared/src/lib.rs +++ b/askama_shared/src/lib.rs @@ -13,9 +13,11 @@ use proc_macro2::{Span, TokenStream}; #[cfg(feature = "serde")] use serde::Deserialize; +pub use crate::derive::derive_template; pub use crate::input::extension_to_mime_type; pub use askama_escape::MarkupDisplay; +mod derive; mod error; pub use crate::error::{Error, Result}; pub mod filters; -- cgit