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
58
59
60
61
62
63
64
65
66
67
#![doc(html_favicon_url = "https://salvo.rs/favicon-32x32.png")]
#![doc(html_logo_url = "https://salvo.rs/images/logo.svg")]
#![cfg_attr(docsrs, feature(doc_cfg))]
#![deny(private_in_public, unreachable_pub)]
#![forbid(unsafe_code)]
#![warn(missing_docs)]
#[macro_use]
mod cfg;
cfg_feature! {
#![feature = "basic-auth"]
pub mod basic_auth;
}
cfg_feature! {
#![feature = "affix"]
pub mod affix;
}
cfg_feature! {
#![feature = "force-https"]
pub mod force_https;
}
cfg_feature! {
#![feature = "jwt-auth"]
pub mod jwt_auth;
}
cfg_feature! {
#![feature = "compression"]
pub mod compression;
}
cfg_feature! {
#![feature = "logging"]
pub mod logging;
}
cfg_feature! {
#![feature = "proxy"]
pub mod proxy;
}
cfg_feature! {
#![feature = "sse"]
pub mod sse;
}
cfg_feature! {
#![feature = "ws"]
pub mod ws;
}
cfg_feature! {
#![feature = "size-limiter"]
pub mod size_limiter;
}
cfg_feature! {
#![feature = "trailing-slash"]
pub mod trailing_slash;
}
cfg_feature! {
#![feature = "timeout"]
pub mod timeout;
}
cfg_feature! {
#![feature = "caching-headers"]
pub mod caching_headers;
}