Skip to main content

vetis_tokio/
lib.rs

1#![doc = include_str!("../README.md")]
2#![deny(missing_docs)]
3#[cfg(all(any(feature = "http2", feature = "http3"), not(feature = "rust-tls")))]
4compile_error!("http2 and http3 requires rust-tls!");
5
6/// Host module
7pub mod host;
8/// Listener module
9pub mod listener;
10/// Runtime module
11pub mod rt;
12/// Tests module
13#[cfg(test)]
14mod tests;
15/// TLS module
16mod tls;
17
18pub use crate::rt::Vetis;
19pub use vetis::{
20    base::VetisServer,
21    errors,
22    host::{handler_fn, HostConfig},
23    listener::ListenerConfig,
24    request::Request,
25    response::Response,
26    security::SecurityConfig,
27    server::ServerConfig,
28    VetisHosts, VetisRwLock,
29};