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 action;
10pub mod app;
11pub mod auth;
12pub mod cache;
13pub mod config;
14pub mod dispatch_runtime;
15pub mod error;
16pub mod form;
17pub mod handler;
18pub mod hosted;
19pub mod http;
20pub mod localization;
21pub mod mediator;
22pub mod middleware;
23pub mod mode;
24pub mod operation;
25pub mod pagination;
26pub mod paths;
27pub mod pipeline;
28pub mod problem;
29pub mod request_context;
30pub mod route;
31pub mod routing;
32pub mod security;
33
34pub use action::*;
35pub use app::*;
36pub use auth::*;
37pub use cache::cache_ext::DistributedCacheExtensions;
38pub use cache::options::DistributedCacheEntryOptions;
39pub use cache::trait_def::{CacheError, IDistributedCache};
40pub use config::*;
41pub use dispatch_runtime::DispatchRuntime;
42pub use error::*;
43pub use form::*;
44pub use handler::*;
45pub use hosted::{
46    BackgroundService, BackgroundServiceHost, CancellationToken, PeriodicBackgroundService,
47};
48pub use http::*;
49pub use localization::*;
50pub use mediator::*;
51pub use middleware::*;
52pub use mode::*;
53pub use operation::*;
54pub use pagination::*;
55pub use paths::*;
56pub use pipeline::*;
57pub use problem::*;
58pub use request_context::*;
59pub use route::*;
60pub use routing::*;
61pub use security::*;