#![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;