aboutsummaryrefslogtreecommitdiffstats
path: root/askama_shared/src/lib.rs
blob: 1ee19cf31998a81f7e02b52f2bf8a5efdc90b213 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#[macro_use]
extern crate error_chain;
#[macro_use]
extern crate nom;
extern crate quote;
extern crate syn;

#[cfg(feature = "serde-json")]
extern crate serde;
#[cfg(feature = "serde-json")]
extern crate serde_json;

pub use errors::Result;
pub mod filters;
pub mod path;
pub use parser::parse;
pub use generator::generate;

mod generator;
mod parser;

mod errors {
    error_chain! {
        foreign_links {
            Fmt(::std::fmt::Error);
            Json(::serde_json::Error) #[cfg(feature = "serde-json")];
        }
    }
}