#![doc(html_root_url = "https://docs.rs/ohkami/0.2.0")]

#[cfg(all(not(feature = "sqlx"), any(feature = "postgres", feature = "mysql")))]
compile_error!("feature `postgres` or `mysql` can't be enebled without enabling `sqlx` feature");
#[cfg(all(feature = "postgres", feature = "mysql"))]
compile_error!("`postgres` feature and `mysql` feature can't be enabled at the same time");

pub mod server;
pub mod result;
pub mod context;
pub mod response;
pub mod components;
pub mod test_system;
pub(crate) mod utils;

pub mod prelude {
    pub use super::{
        server::{Server, Config},
        result::{Result, ElseResponse, ElseResponseWithErr},
        context::Context,
        response::{Response, Body},
        components::json::{json, JSON},
    };

    #[cfg(feature = "sqlx")]
    pub use super::server::DBprofile;
}
