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