| Crates.io | armature-core |
| lib.rs | armature-core |
| version | 0.2.1 |
| created_at | 2025-12-26 20:39:49.826398+00 |
| updated_at | 2025-12-30 22:14:51.898616+00 |
| description | High-performance async HTTP framework core - routing, handlers, middleware |
| homepage | https://pegasusheavy.github.io/armature |
| repository | https://github.com/pegasusheavy/armature |
| max_upload_size | |
| id | 2006221 |
| size | 1,929,603 |
Core framework for the Armature web framework.
matchit, LRU caching, and static route fast pathBytes for efficient body handling[dependencies]
armature-core = "0.1"
use armature_core::{Application, HttpResponse};
#[tokio::main]
async fn main() {
let app = Application::new()
.get("/", |_req| async { Ok(HttpResponse::ok()) })
.get("/hello/:name", |req| async move {
let name = req.param("name").unwrap_or("World");
Ok(HttpResponse::ok().with_text(format!("Hello, {}!", name)))
});
app.listen("0.0.0.0:3000").await.unwrap();
}
Benchmarked against other Rust frameworks:
| Metric | Armature | Axum | Actix-web |
|---|---|---|---|
| Plaintext RPS | 385k | 390k | 420k |
| JSON RPS | 305k | 310k | 340k |
| Latency P50 | 0.11ms | 0.10ms | 0.09ms |
MIT OR Apache-2.0