fr-rust 0.1.0

A comprehensive framework/utility library for Actix-web, Postgres, Redis, and authentication.
Documentation
// ==========================================
// 1. Module Declarations
// ==========================================

pub mod crypto;
pub mod db;
pub mod ddos;
pub mod email;
pub mod jwt;
pub mod linkv;
pub mod otp;
pub mod redis;
pub mod res;
pub mod server;
pub mod types;
pub mod utils;
pub mod ws;
pub use actix_web::main;

// ==========================================
// 2. The Framework Prelude
// ==========================================
pub mod prelude {
    // --------------------------------------
    // Standard Library Re-exports
    // --------------------------------------
    pub use std::{collections::HashMap, env, io::Result as IoResult, sync::Arc};

    // --------------------------------------
    // Internal Library Re-exports
    // --------------------------------------
    pub use crate::crypto::{self, CryptoService};
    pub use crate::db::{self, DbPool};
    pub use crate::ddos::{self, DdosConfig, DdosShield};
    pub use crate::email::{self, EmailConfig, EmailData, EmailService};
    pub use crate::jwt::{self, Jwt};
    pub use crate::linkv::{self, LinkV, LinkVConfig};
    pub use crate::otp::{self, OtpConfig, OtpService};
    pub use crate::redis::{self, RedisManager, RedisManagerError};
    pub use crate::res::{
        self, http_bad, http_bad_json, http_ok, http_ok_json, send_file, send_json, send_str,
        upload_file,
    };
    pub use crate::server::{self, env_var, env_var_or_default, load_env};
    pub use crate::types::{self, FileRlt, MainRlt, Rlt, RltRsp, Rsp, Rqs};
    pub use crate::ws::{self, UserMsg, WsConfig, WsManager};
    pub use crate::utils::{
        self,
        utils::{generate_token, input},
    };
}