Skip to main content

webx_core/
lib.rs

1//! Core traits for the rust-webx framework (package `rust-webx-core`, imported
2//! as `webx_core`).
3//!
4//! This crate defines the framework's contracts — `IRequest`, `IRequestHandler`,
5//! `IMiddleware`, `IHttpContext`, `IMediator`, `IHostedService`, `Error`,
6//! `AppMode` — with **no HTTP engine dependency**. Custom middleware and tests
7//! can depend on `webx_core` alone.
8
9pub mod app;
10pub mod auth;
11pub mod cache;
12pub mod config;
13pub mod dispatch_runtime;
14pub mod error;
15pub mod form;
16pub mod handler;
17pub mod http;
18pub mod localization;
19pub mod mediator;
20pub mod middleware;
21pub mod mode;
22pub mod operation;
23pub mod pagination;
24pub mod paths;
25pub mod pipeline;
26pub mod problem;
27pub mod request_context;
28pub mod route;
29pub mod routing;
30
31pub use app::*;
32pub use auth::*;
33pub use cache::cache_ext::DistributedCacheExtensions;
34pub use cache::options::DistributedCacheEntryOptions;
35pub use cache::trait_def::{CacheError, IDistributedCache};
36pub use config::*;
37pub use dispatch_runtime::DispatchRuntime;
38pub use error::*;
39pub use form::*;
40pub use handler::*;
41pub use http::*;
42pub use localization::*;
43pub use mediator::*;
44pub use middleware::*;
45pub use mode::*;
46pub use operation::*;
47pub use pagination::*;
48pub use paths::*;
49pub use pipeline::*;
50pub use problem::*;
51pub use request_context::*;
52pub use route::*;
53pub use routing::*;