# 🚀 RustBasic Core
**RustBasic Core** is the high-performance engine behind the RustBasic Framework. It provides a modular, agent-centric architecture for building modern web applications with Axum, Sea-ORM, and MiniJinja.
[](https://crates.io/crates/rustbasic-core)
[](https://docs.rs/rustbasic-core)
[](LICENSE)
## ✨ Features
- ⚡ **Axum Powered**: Blazing fast HTTP server wrapper.
- 🗄️ **Sea-ORM Integration**: Robust async ORM with auto-migration support.
- 🎨 **MiniJinja Views**: Standard HTML templates with Jinja2-like syntax.
- 🛡️ **Security First**: Built-in CSRF protection, secure sessions, and rate limiting.
- 🛠️ **CLI Scaffolding**: Rapidly generate controllers, models, and migrations.
- 📧 **Mailer Service**: Integrated SMTP support via Lettre.
## 📦 Installation
Add this to your `Cargo.toml`:
```toml
[dependencies]
rustbasic-core = "0.0.1"
```
## 🚀 Quick Start
```rust
use rustbasic_core::Config;
#[tokio::main]
async fn main() {
// 1. Load Configuration
let cfg = Config::load();
// 2. Connect to Database
let db = rustbasic_core::database::connect(&cfg).await;
// 3. Build your Router
let app_router = rustbasic_core::Router::new();
// 4. Start Server
rustbasic_core::server::start_server(cfg, session_store, static_files, db, app_router).await;
}
```
## 📖 Documentation
For full documentation and the starter template, visit the main [RustBasic Repository](https://github.com/yourusername/rustbasic).
## 📄 License
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
---
Built with ❤️ by the RustBasic Team.