4个版本
使用旧Rust 2015
| 0.0.4 | 2018年3月18日 |
|---|---|
| 0.0.3 | 2018年3月12日 |
| 0.0.2 | 2018年3月10日 |
| 0.0.1 | 2018年3月8日 |
#1216 in HTTP服务器
115KB
3.5K SLoC
机库
Rust Web框架,使用Rocket、Diesel和stdweb
安装
- 确保您已安装Rust。如果您没有安装Rust,请使用rustup。
- 安装rust nightly
rustup install nightlyrustup default nightly - 安装diesel数据库访问
cargo install diesel_cli - 安装此crate
cargo install hangar - 创建新的Web应用程序
hangar new --name new_app --database sqlite --database-url db.sqlite - 在生成的Web应用程序文件夹中执行初始迁移
hangar db setuphangar db print-schema > src/schema.rs - 运行应用程序
cargo run - 在其他终端启动资产打包器
npm run start-jsnmp run start-css
依赖关系
~16MB
~308K SLoC