volter-cli-0.1.0 is not a library.
Volter
A production-grade, async-first web framework for Rust, built on hyper, tokio, and tower.
Volter follows the same architectural principles as tower — every component is
a Service or a Layer, making the framework naturally composable with
the broader tower ecosystem.
Features
- Extractor-based handlers —
Json<T>,Query<T>,Path<T>,Extension<T>,State<T>, and custom extractors viaFromRequest/FromRequestParts. - Tower-native middleware — any
tower::Layerworks directly withRouter::layer(). Built-in layers include tracing, timeout, CORS, compression, rate-limiting, request ID, panic catching, and body limits. - Compile-time safety — state types and extractor parameters are checked at compile time. Wrong state type? It won't compile.
- No panics in request paths — deny-level lints (
unwrap_used,expect_used,panic,indexing_slicing) are enforced across every library crate. - Optional macros — the core API is pure Rust. Derive macros for custom
extractors and attribute route macros (
#[get],#[post]) are optional. - WebSocket support — behind the
wsfeature flag. - In-process testing —
TestClientdispatches requests directly through the router without binding a real socket.
Quick start
use TcpListener;
use ;
async
async
Documentation
Crate layout
| Crate | Description |
|---|---|
volter |
Umbrella crate — re-exports everything |
volter-core |
Core traits: Handler, FromRequest, IntoResponse, State |
volter-router |
Router, MethodRouter, route construction |
volter-extract |
Extractors: Json, Query, Path, Extension |
volter-middleware |
Built-in middleware: TraceLayer, CorsLayer, etc. |
volter-ws |
WebSocket support |
volter-macros |
Derive and route attribute macros |
volter-testing |
TestClient for integration tests |
volter-cli |
CLI tool for project scaffolding |
Performance
See the performance page for current Criterion benchmark results.
License
Licensed under either of:
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.