Arcly-http (v0.1.2) — Bringing NestJS ergonomics and zero-lock DI to Axum
⚓ Rust 📅 2026-06-12 👤 surdeus 👁️ 2Hello everyone
My team and I have been building arcly-http (and arcly-http-macros), an open-source, enterprise-grade HTTP framework designed to bring NestJS-style developer ergonomics to the Rust ecosystem. It is built directly on top of axum 0.7 and tokio.
We just released version 0.1.2 on Crates.io, focusing heavily on production testing tools and core resilience hardening.
What is arcly-http?
It bridges the gap between high-level architectural productivity and Rust’s native performance. If you love the structure of NestJS (declarative controllers, dependency injection) but want zero-lock hot paths and compile-time type safety, this is for you.
What’s New in v0.1.2?
-
First-Class Testing Suite: Added
TestRequestandTestServer. You can now easily push production-shaped contexts right through the real pipeline—including user claims, multi-tenancy headers, traces, and Dependency Injection—for frictionless unit and integration testing. -
True Lock-Free EventBus: Migrated the internal
EventBusfrom anRwLockimplementation to anArcSwapsnapshot architecture, dropping extraction overhead and enabling atomic, lock-free loads on every event emission. -
Hardened Circuit Breaker: Fixed an edge case where breakers could get stuck in a half-open state. Failed half-open probes now robustly reopen with a fresh cooldown timer, fully eliminating the half-open thundering herd problem on broken dependencies.
-
Advanced Event Routing: Added bounded parallel processing with
ConsumerRuntime::concurrencyand introduced explicitEventError::{Retry, DeadLetter}boundaries so poison messages route straight to the DLQ instead of looping indefinitely.
Core Architecture Features:
-
Zero-Lock DI Engine: Dynamic dependency resolution in $O(1)$ time complexity with zero locks or allocations on the request hot path.
-
Complete Auth & Security: Out-of-the-box support for JWT (with runtime key rotation), HMAC-SHA256 signed cookies, server sessions, and OAuth 2.0 + PKCE.
-
Advanced DB Facade: Multi-tenant routing, read/write splitting, and an atomic
#[Transactional]engine backed by a Transactional Outbox mesh to eliminate dual-write risks. -
Full Observability: Auto-generated Swagger UI (
/docs), Prometheus metrics, and W3C trace propagation across both HTTP and message envelopes.
The project is entirely open-source under the MIT License. We are actively maintaining the codebase and would love to hear your thoughts, feedback, or any feature requests!
Looking forward to your feedback!
3 posts - 2 participants
🏷️ Rust_feed
