
Salvo Has a Free API: A Rust Web Framework With Built-in OpenAPI and Acme TLS
Salvo is a Rust web framework focused on simplicity and productivity. It features automatic OpenAPI documentation, built-in ACME (Let's Encrypt) TLS, and a middleware system that makes Rust web development feel effortless. Why Salvo Matters Axum is powerful but requires assembling many pieces. Salvo includes OpenAPI generation, TLS certificates, WebSocket support, and rate limiting out of the box — with less boilerplate. What you get for free: Automatic OpenAPI 3.0 documentation generation Built-in ACME TLS (automatic Let's Encrypt certificates) WebSocket support Rate limiting middleware CORS, logging, compression built in Proxy and static file serving Less boilerplate than Axum for common tasks Quick Start cargo new my-api cd my-api # Add to Cargo.toml: # salvo = { version = "0.70", features = ["oapi"] } # tokio = { version = "1", features = ["full"] } cargo run Hello World use salvo :: prelude :: * ; #[handler] async fn hello ( res : & mut Response ) { res .render ( Text :: Plain ( "
Continue reading on Dev.to Webdev
Opens in a new tab



