aboutsummaryrefslogblamecommitdiffstats
path: root/askama_shared/src/lib.rs
blob: 301ca13bba45a700b68db015cd208480056315ed (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12











                              
                                















                                                                     
#[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::{Error, 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")];
        }
    }
}