Features
- Base on hyper, tokio.
- Tree-like routing system.
Quick start
You can view samples here or read docs here.
Create a new rust project:
Add this to Cargo.toml
[]
= "0.4"
= { = "1.0", = ["full"] }
Create a simple function handler in the main.rs file, we call it hello_world
, this function just render plain text "Hello World".
use *;
async
In the main function, we need to create a root Router first, and then create a server and call it's serve function:
use *;
async
async
License
Salvo is licensed under MIT License (LICENSE-MIT or http://opensource.org/licenses/MIT)