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;
9#[cfg(feature = "config")]
10mod config;
11mod container;
12mod context;
13mod controller;
14mod cookie;
15mod events;
16mod exception;
17mod guard;
18mod interceptor;
19mod logging;
20mod microservice;
21mod module;
22#[cfg(feature = "openapi")]
23/// Public Caelix module `openapi`.
24pub mod openapi;
25mod response;
26mod result;
27mod throttle;
28#[cfg(feature = "uploads")]
29mod upload;
30mod websocket;
31
32/// Re-exported public API.
33pub use bytes::Bytes;
34/// Re-exported public API.
35pub use cache::*;
36#[cfg(feature = "config")]
37/// Typed configuration loading and module registration.
38pub use config::*;
39/// Re-exported public API.
40pub use container::*;
41/// Re-exported public API.
42pub use context::*;
43/// Re-exported public API.
44pub use controller::*;
45/// Framework-owned response cookie primitives.
46pub use cookie::{Cookie, SameSite};
47/// Re-exported public API.
48pub use events::*;
49/// Re-exported public API.
50pub use exception::*;
51/// Re-exported public API.
52pub use futures_util::StreamExt;
53/// Re-exported public API.
54pub use guard::*;
55/// Re-exported public API.
56pub use http::StatusCode;
57/// Re-exported public API.
58pub use interceptor::*;
59/// Re-exported public API.
60pub use logging::*;
61/// Re-exported public API.
62pub use microservice::*;
63/// Re-exported public API.
64pub use module::*;
65/// Re-exported public API.
66pub use response::*;
67/// Re-exported public API.
68pub use result::Result;
69/// Request throttling primitives.
70pub use throttle::*;
71/// Re-exported public API.
72#[cfg(feature = "uploads")]
73/// Re-exported public API.
74pub use upload::*;
75/// Re-exported public API.
76pub use websocket::*;
77
78#[cfg(feature = "config")]
79#[doc(hidden)]
80pub use serde::de::DeserializeOwned as __DeserializeOwned;
81#[cfg(feature = "config")]
82#[doc(hidden)]
83pub use serde::de::value::{
84    Error as __ConfigValueError, StrDeserializer as __ConfigStrDeserializer,
85};
86#[cfg(feature = "validator")]
87/// Re-exported public API.
88pub use validator;
89#[cfg(feature = "config")]
90#[doc(hidden)]
91pub use validator::Validate as __Validate;