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
#![forbid(unsafe_code)]
#![warn(missing_docs, missing_debug_implementations, rust_2018_idioms)]
mod app;
pub use app::{serve, App};
pub use hyper::Server;
pub mod prelude {
pub use super::{App, Server};
pub use types::*;
pub use viz_core::*;
pub use viz_router::*;
}
#[cfg(feature = "middleware")]
pub use viz_middleware as middleware;
pub use viz_utils as utils;
pub fn new() -> App {
App::new()
}
#[cfg(all(unix, any(feature = "tls", feature = "uds")))]
pub use hyper::server::accept::from_stream as hyper_accept_from_stream;
#[cfg(feature = "tls")]
pub mod tls;