Registry / web-framework / salvo
library0.93.0rscratesunverified

Salvo is a powerful web framework that can make your work easier.

# Cargo.toml [dependencies] salvo = "0.93.0"
INSTALL
IMPORT
SIG · SALVO
S
salvo
web-frameworkrustv0.93.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Router
✓ use salvo::prelude::*;

Basic Salvo web server with a hello handler

use salvo::prelude::*; #[handler] async fn hello() -> &'static str { "Hello World" } #[tokio::main] async fn main() { let router = Router::new().get(hello); Server::new(TcpListener::bind("0.0.0.0:7878")).serve(router).await; }
Debug
Known issues
gotchaRequires Tokio runtime for async handlers
fix
Add tokio as dependency and use #[tokio::main]
affects: >=0.93.0
Upgrade
Version history
0.93.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
10 hits · last 30 days
node
10
Resources
salvo — cargo add salvo · libregistry