1 unstable release
new 0.1.0 | Feb 23, 2025 |
---|
#743 in HTTP server
80KB
2K
SLoC
Axeon
A modern, flexible, and feature-rich web framework for Rust.
Features
- Express-style routing with path parameters
- Middleware support (logging, security, rate limiting, etc.)
- Static file serving
- Built-in security features
- JSON request/response handling
- Async/await support
Quick Start
Add Axeon to your Cargo.toml
:
[dependencies]
axeon = "0.1.0"
Create a simple server:
use axeon::app::Application;
use axeon::ok_json;
fn main() {
let mut app = Application::new();
app.get("/", |_req| async {
ok_json!({
"message": "Hello, World!"
})
});
app.listen("127.0.0.1:3000").unwrap();
}
License
This project is licensed under the MIT License.
lib.rs
:
Axeon
A modern, flexible, and feature-rich web framework for Rust.
Features
- Express-style routing with path parameters
- Middleware support (logging, security, rate limiting, etc.)
- Static file serving
- Built-in security features
- JSON request/response handling
- Async/await support
Quick Start
use axeon::app::Application;
use axeon::ok_json;
fn main() {
let mut app = Application::new();
// Add routes
app.get("/", |_req| async {
ok_json!({
"message": "Hello, World!"
})
});
// Start server
app.listen("127.0.0.1:3000").unwrap();
}
Middleware Usage
use axeon::middleware::{SecurityConfig, SecurityHeaders};
let security_config = SecurityConfig::default();
app.middleware(SecurityHeaders::new(security_config));
Dependencies
~15–43MB
~737K SLoC