aboutsummaryrefslogblamecommitdiffstats
path: root/askama_shared/src/lib.rs
blob: 35e779cfbe77513235a01e6bee033ada4dbe42cb (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 escaping;
mod generator;
mod parser;

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