aboutsummaryrefslogtreecommitdiffstats
path: root/askama_shared/src/lib.rs
diff options
context:
space:
mode:
authorLibravatar René Kijewski <kijewski@library.vetmed.fu-berlin.de>2022-03-10 08:44:35 +0100
committerLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2022-03-23 19:37:10 +0100
commit4c0388d11e1bafb85250b649ff610d3f9c7f9452 (patch)
treef6c9313c30c2475a5bc729bb57148342e11aedec /askama_shared/src/lib.rs
parent944d591121865c7c6856c91bfe9d2e91b2d5ff44 (diff)
downloadaskama-4c0388d11e1bafb85250b649ff610d3f9c7f9452.tar.gz
askama-4c0388d11e1bafb85250b649ff610d3f9c7f9452.tar.bz2
askama-4c0388d11e1bafb85250b649ff610d3f9c7f9452.zip
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.
Diffstat (limited to 'askama_shared/src/lib.rs')
-rw-r--r--askama_shared/src/lib.rs2
1 files changed, 2 insertions, 0 deletions
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;