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
#![doc(html_root_url = "https://docs.rs/ohkami/0.6.1")]
#[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;
pub(crate) mod utils;
pub(crate) mod router;
pub(crate) mod handler;
pub(crate) mod setting;
pub mod prelude {
pub use super::{
server::Ohkami,
setting::{Config, Middleware},
result::{Result, ElseResponse, ElseResponseWithErr},
context::Context,
response::{Response, body::Body},
components::{
json::{JSON, json},
headers::Header,
},
};
#[cfg(feature = "sqlx")]
pub use super::server::DBprofile;
}
pub use handler::group;