Expand description
§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));Re-exports§
pub extern crate serde_json;
Modules§
- app
- Application is the main entry point for the Axeon framework.
- buffer
- cache
- database
- error
- handler
- http
- middleware
- plugins
- router
Macros§
- created_
json - json
- Construct a
serde_json::Valuefrom a JSON literal. - middlewares
- ok_json
Enums§
- Value
- Represents any valid JSON value.