lexa_framework/
lib.rs

1// ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
2// ┃ Copyright: (c) 2023, Mike 'PhiSyX' S. (https://github.com/PhiSyX)         ┃
3// ┃ SPDX-License-Identifier: MPL-2.0                                          ┃
4// ┃ ╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ ┃
5// ┃                                                                           ┃
6// ┃  This Source Code Form is subject to the terms of the Mozilla Public      ┃
7// ┃  License, v. 2.0. If a copy of the MPL was not distributed with this      ┃
8// ┃  file, You can obtain one at https://mozilla.org/MPL/2.0/.                ┃
9// ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛
10
11mod application;
12#[cfg(feature = "auth")]
13pub mod auth;
14pub mod database;
15pub mod extract;
16pub mod http;
17mod macros_rules;
18pub mod middleware;
19pub mod routing;
20pub mod security;
21pub mod server;
22pub mod state;
23pub mod types;
24pub mod view;
25
26pub use async_trait::async_trait;
27pub use lexa_framework_macro::{html, View};
28
29pub use self::application::{
30	Application,
31	ApplicationCLIInterface,
32	ApplicationCreateExt as ApplicationInterface,
33	ApplicationEnvInterface,
34	DefaultApplication,
35	EnvProcessMode,
36	Error as ApplicationError,
37	Settings as ApplicationSettings,
38	SettingsLoaderExtension as ApplicationSettingsLoaderExtension,
39};
40pub use self::routing::RouterExt as ApplicationRouter;
41pub use self::server::{Error as ServerError, Server};