Skip to main content

luxid_core/
lib.rs

1//! Core runtime for the Luxid web framework.
2//!
3//! Applications depend on the `luxid` facade crate rather than on this one.
4
5pub mod adapter;
6pub mod app;
7pub mod auth;
8pub mod config;
9pub mod container;
10pub mod context;
11pub mod error;
12pub mod http;
13pub mod inertia;
14pub mod middleware;
15pub mod openapi;
16pub mod router;
17pub mod session;
18pub mod validation;
19
20pub use app::App;
21pub use auth::{Auth, Hash, Identity, Jwt};
22pub use config::Config;
23pub use container::{Container, Lifetime, Providers};
24pub use context::{Extensions, HttpContext, Params};
25pub use error::{Error, Result, ValidationErrors};
26pub use http::{Body, Cookie, Request, Response, SameSite};
27pub use inertia::{Inertia, InertiaRequest};
28pub use middleware::{Action, BoxFuture, Middleware, Next};
29pub use openapi::{Operation, ResponseSpec};
30pub use router::{Method, ResourceRoutes, Route, RouteInfo, Router};
31pub use session::{MemoryStore, Session, SessionData, SessionStore};
32pub use validation::{Validate, validate};
33
34/// Re-exports for code generated by `luxid-macros`. Not a stable API.
35#[doc(hidden)]
36pub mod __private {
37    pub use salvo;
38
39    pub use crate::middleware::{Action, BoxFuture, Middleware, Next};
40    pub use crate::openapi::{Operation, ResponseSpec};
41    pub use crate::router::ResourceRoutes;
42    pub use crate::validation::{Validate, rules, validate};
43}