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
#![cfg_attr(docsrs, feature(doc_cfg))]

#[cfg(feature = "http")]
#[cfg_attr(docsrs, doc(cfg(feature = "http")))]
/// Re-export of the http crate
pub use http;

#[cfg(feature = "application")]
#[cfg_attr(docsrs, doc(cfg(feature = "application")))]
/// Core of the Mendes web application toolkit
pub mod application;
#[cfg(feature = "application")]
pub use application::{handler, route, scope, Application, Context, Error, FromContext};

#[doc(hidden)]
#[cfg(feature = "askama")]
#[cfg_attr(docsrs, doc(cfg(feature = "askama")))]
pub mod askama;

#[cfg(feature = "cookies")]
#[cfg_attr(docsrs, doc(cfg(feature = "cookies")))]
/// Cookie support
pub mod cookies;

#[cfg(feature = "forms")]
#[cfg_attr(docsrs, doc(cfg(feature = "forms")))]
/// Form generation and data validation
pub mod forms;

/// Some helperrs
pub mod utils;

#[cfg(feature = "hyper")]
#[cfg_attr(docsrs, doc(cfg(feature = "hyper")))]
/// Optional features that require hyper
pub mod hyper;

#[doc(hidden)]
#[cfg(feature = "models")]
#[cfg_attr(docsrs, doc(cfg(feature = "models")))]
/// A nascent attempt at a Rusty ORM
pub mod models;

#[cfg(feature = "uploads")]
mod multipart;

/// Some content type definitions
pub mod types {
    pub const HTML: &str = "text/html";
    pub const JSON: &str = "application/json";
}