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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#![warn(missing_docs)]
#![cfg_attr(docsrs, feature(doc_auto_cfg, doc_cfg))]

//! lib-humus helps with some fertile ground to build project on.
//!
//! It helps combining axum with tera and getting configuration from toml-files.
//!

///////////////////////////////////////
//// Toml

#[cfg(feature="toml")]
mod toml_helper;

#[cfg(feature="toml")]
pub use self::toml_helper::*;

///////////////////////////////////////
//// Tera-Loader

#[cfg(feature="tera-loader")]
mod template_loader;

#[cfg(feature="tera-loader")]
pub use self::template_loader::*;

///////////////////////////////////////
//// Proto Engine


#[cfg(any(feature="tera-loader",feature="axum-view"))]
mod proto_engine;
	
#[cfg(any(feature="tera-loader",feature="axum-view"))]
pub use self::proto_engine::HumusProtoEngine;


///////////////////////////////////////
//// Axum-View

#[cfg(feature="axum-view")]
mod engine;
#[cfg(feature="axum-view")]
mod format;
#[cfg(feature="axum-view")]
mod query_settings;
#[cfg(feature="axum-view")]
mod view;

#[cfg(feature="axum-view")]
pub use self::{
	engine::*,
	format::*,
	query_settings::*,
	view::*,
};