diff options
author | David Tolnay <dtolnay@gmail.com> | 2018-04-12 11:42:36 -0700 |
---|---|---|
committer | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2018-04-12 21:14:49 +0200 |
commit | 1267e966f47893bdaa9ab0f3f15d32110eddfd6e (patch) | |
tree | 0f84c80d1e3bcdff4bdf898a4db4e0da934166e8 /askama_derive/src/generator.rs | |
parent | e56a0d034b4cbd146c374366964c6c7f4587539f (diff) | |
download | askama-1267e966f47893bdaa9ab0f3f15d32110eddfd6e.tar.gz askama-1267e966f47893bdaa9ab0f3f15d32110eddfd6e.tar.bz2 askama-1267e966f47893bdaa9ab0f3f15d32110eddfd6e.zip |
Isolate proc-macro dependency to the proc macro
The dependency of askama on askama_shared on syn on libproc_macro used
to mean libproc_macro would be dynamically linked into any crate using
askama. We want only askama_derive to have a runtime dependency on proc
macro. This commit moves all proc macro code from askama_shared into
askama_derive so that the askama crate no longer dynamically links
libproc_macro.
Diffstat (limited to '')
-rw-r--r-- | askama_derive/src/generator.rs (renamed from askama_shared/src/generator.rs) | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/askama_shared/src/generator.rs b/askama_derive/src/generator.rs index 8a112c8..357bd0f 100644 --- a/askama_shared/src/generator.rs +++ b/askama_derive/src/generator.rs @@ -1,7 +1,6 @@ -use filters; use input::TemplateInput; use parser::{self, Cond, Expr, Macro, MatchParameter, MatchVariant, Node, Target, When, WS}; -use path; +use shared::{filters, path}; use quote::{ToTokens, Tokens}; |