Refactor environment module: Rename enviroment to environment and consolidate environment configuration management
- Updated all references from `enviroment` to `environment` across the codebase. - Removed the old `enviroment` module and replaced it with a new `environment` module that includes centralized configuration management. - Enhanced OTP generation to include secure hashing and expiration handling. - Improved CSRF token generation and validation with better error handling. - Cleaned up logging statements in various modules for clarity and consistency. - Updated response formatting to include versioning from Cargo.toml. - Removed unused mock test module from utils.
This commit is contained in:
+19
-2
@@ -1,8 +1,25 @@
|
||||
/*!
|
||||
# imphnen-libs
|
||||
|
||||
A collection of utility libraries and services for the imphnen project, providing integrations
|
||||
with various external services and common functionality.
|
||||
|
||||
This crate includes modules for:
|
||||
- Password hashing with Argon2 (`argon`)
|
||||
- Axum web framework utilities (`axum`)
|
||||
- Environment configuration (`environment`)
|
||||
- JWT token handling (`jsonwebtoken`)
|
||||
- Email sending with Lettre (`lettre`)
|
||||
- MinIO object storage client (`minio`)
|
||||
- Service abstractions (`services`)
|
||||
- SurrealDB database client (`surrealdb`)
|
||||
*/
|
||||
|
||||
use std::sync::Arc;
|
||||
|
||||
pub mod argon;
|
||||
pub mod axum;
|
||||
pub mod enviroment;
|
||||
pub mod environment;
|
||||
pub mod jsonwebtoken;
|
||||
pub mod lettre;
|
||||
pub mod minio;
|
||||
@@ -11,7 +28,7 @@ pub mod surrealdb;
|
||||
|
||||
pub use argon::{hash_password, verify_password};
|
||||
pub use axum::axum_init;
|
||||
pub use enviroment::{ENV, Env};
|
||||
pub use environment::{ENV, Env};
|
||||
pub use imphnen_entities::{
|
||||
MessageResponseDto,
|
||||
MetaRequestDto,
|
||||
|
||||
Reference in New Issue
Block a user