Skip to main content

caelix_core/
lib.rs

1#![deny(missing_docs)]
2#![deny(rustdoc::broken_intra_doc_links)]
3
4//! Core primitives for Caelix.
5
6extern crate self as caelix_core;
7
8mod cache;
9mod container;
10mod context;
11mod controller;
12mod cookie;
13mod events;
14mod exception;
15mod guard;
16mod interceptor;
17mod logging;
18mod microservice;
19mod module;
20#[cfg(feature = "openapi")]
21/// Public Caelix module `openapi`.
22pub mod openapi;
23mod response;
24mod result;
25#[cfg(feature = "uploads")]
26mod upload;
27mod websocket;
28
29/// Re-exported public API.
30pub use bytes::Bytes;
31/// Re-exported public API.
32pub use cache::*;
33/// Re-exported public API.
34pub use container::*;
35/// Re-exported public API.
36pub use context::*;
37/// Re-exported public API.
38pub use controller::*;
39/// Framework-owned response cookie primitives.
40pub use cookie::{Cookie, SameSite};
41/// Re-exported public API.
42pub use events::*;
43/// Re-exported public API.
44pub use exception::*;
45/// Re-exported public API.
46pub use futures_util::StreamExt;
47/// Re-exported public API.
48pub use guard::*;
49/// Re-exported public API.
50pub use http::StatusCode;
51/// Re-exported public API.
52pub use interceptor::*;
53/// Re-exported public API.
54pub use logging::*;
55/// Re-exported public API.
56pub use microservice::*;
57/// Re-exported public API.
58pub use module::*;
59/// Re-exported public API.
60pub use response::*;
61/// Re-exported public API.
62pub use result::Result;
63/// Re-exported public API.
64#[cfg(feature = "uploads")]
65/// Re-exported public API.
66pub use upload::*;
67/// Re-exported public API.
68pub use websocket::*;
69
70#[cfg(feature = "validator")]
71/// Re-exported public API.
72pub use validator;