forked from http-rs/tide
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlib.rs
executable file
·67 lines (55 loc) · 1.37 KB
/
lib.rs
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
#![cfg_attr(any(feature = "nightly", test), feature(external_doc))]
#![cfg_attr(feature = "nightly", doc(include = "../README.md"))]
#![feature(async_await, existential_type)]
#![warn(
nonstandard_style,
rust_2018_idioms,
future_incompatible,
missing_debug_implementations,
missing_docs
)]
//!
//! Welcome to Tide.
//!
//! The [`App`](struct.App.html) docs are a good place to get started.
//!
//!
#[cfg(test)]
#[doc(include = "../README.md")]
const _README: () = ();
pub use http;
#[cfg(feature = "cookies")]
#[doc(inline)]
pub use tide_cookies as cookies;
#[doc(inline)]
pub use tide_core::{
err_fmt,
response,
App,
Context,
Endpoint,
EndpointResult,
Error,
Response,
Route,
Server,
// TODO: export Body once it's in turn exported by tide_core
};
pub mod error {
//! Module to export tide_core errors
pub use tide_core::error::{
EndpointResult, Error, ResponseExt, ResultDynErrExt, ResultExt, StringError,
};
}
pub use tide_forms as forms;
pub use tide_querystring as querystring;
pub mod middleware {
//! Module to export tide_core middleware
// Core
pub use tide_core::middleware::{Middleware, Next};
// Exports from tide repo.
pub use tide_headers::DefaultHeaders;
pub use tide_log::RequestLogger;
#[cfg(feature = "cookies")]
pub use tide_cookies::CookiesMiddleware;
}