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 pagination;
23pub mod paths;
24pub mod pipeline;
25pub mod problem;
26pub mod request_context;
27pub mod route;
28pub mod routing;
29
30pub use app::*;
31pub use auth::*;
32pub use cache::cache_ext::DistributedCacheExtensions;
33pub use cache::options::DistributedCacheEntryOptions;
34pub use cache::trait_def::{CacheError, IDistributedCache};
35pub use config::*;
36pub use dispatch_runtime::{dispatch_handler_cache, dispatch_provider, DispatchRuntime};
37pub use error::*;
38pub use form::*;
39pub use handler::*;
40pub use http::*;
41pub use localization::*;
42pub use mediator::*;
43pub use middleware::*;
44pub use mode::*;
45pub use pagination::*;
46pub use paths::*;
47pub use pipeline::*;
48pub use problem::*;
49pub use request_context::*;
50pub use route::*;
51pub use routing::*;