在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:Hexilee/roa开源软件地址:https://github.com/Hexilee/roa开源编程语言:Rust 99.3%开源软件介绍:RoaRoa is an async web framework inspired by koajs, lightweight but powerful.
Examples | Guide | CookbookFeature highlights
Get start# Cargo.toml
[dependencies]
roa = "0.6"
tokio = { version = "1.15", features = ["rt", "macro"] } use roa::App;
use roa::preload::*;
#[tokio::main]
async fn main() -> anyhow::Result<()> {
let app = App::new().end("Hello, World");
app.listen("127.0.0.1:8000", |addr| {
println!("Server is listening on {}", addr)
})?
.await?;
Ok(())
} Refer to wiki for more details. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论