Tower-webRust 的快速、无样板 Web 框架
Tower-web :Rust 的快速、无样板 Web 框架
Tower Web 介绍:
Tower Web是一个快速的Web框架,旨在删除样板。
目标是将所有HTTP概念与应用程序逻辑分离。使用“普通Rust类型”实现应用程序,Tower Web使用宏来生成必要的粘合剂,以便将应用程序作为HTTP服务提供。
#[macro_use] extern crate tower_web; extern crate tokio; use tower_web::ServiceBuilder; use tokio::prelude::*; /// This type will be part of the web service as a resource. #[derive(Clone, Debug)] struct HelloWorld; /// This will be the JSON response #[derive(Response)] struct HelloResponse { message: &'static str, } impl_web! { impl HelloWorld { #[get("/")] #[content_type("json")] fn hello_world(&self) -> Result { Ok(HelloResponse { message: "hello world", }) } } } pub fn main() { let addr = "127.0.0.1:8080".parse().expect("Invalid address"); println!("Listening on http://{}", addr); ServiceBuilder::new() .resource(HelloWorld) .run(&addr) .unwrap(); }
Tower Web 基于Tokio (Rust并发框架与平台)和Hyper(Rust的HTTP server框架)构建。
Tower Web 框架属于Tokio平台生态重要部分。
Tokio英文站点 https://tokio.rs/
Tokio中文站点https://tokio-zh.github.io
评论
MonkRuby的Web快速开发框架
Monk是一个用Ruby开发的用于Web开发的胶水框架,真正模块化的开发流程,开发速度超快。安装和使用:$sudogeminstallmonk$monkinitmyapp使用Monk开发的应用的目录结
MonkRuby的Web快速开发框架
0
LazyJJava Web快速框架
LazyJ是一个开发基于Java的web程序的快速框架,它提供了接口来替换标准的ServletAPI,另外还包括一个快速的模板引擎、数据库连接池以及基于数据库的session存储、内容和数据缓存模块以
LazyJJava Web快速框架
0
alcedor快速web框架
ALCEDOR是翠鸟的意思,多了一个r因为网上这个名字重复了。所以加了一个儿化韵。不妨叫做翠鸟儿。ALCEDOR是一个轻量级的快速web框架。工作时候最好和前台AJAXUI组件比如EXT,DOJO,j
alcedor快速web框架
0
webgiisooJava web 快速开发框架
一款Web Java的快速开发框架,绝对高效开发,高性能应用系统,使用更加简单的MV模式,简化了MVC开发模式。极易的模块间的扩展和复用,使得开发更加快速。“我们的宗旨就是让代码更加简单、高效”。
webgiisooJava web 快速开发框架
0