11个版本

0.2.6 2022年11月30日
0.2.5 2022年10月15日
0.1.5 2022年9月29日

#356开发工具

每月 29 次下载

MIT 许可证

35KB
493

Servust

Servust是一个简单的CLI工具,可以从模板创建新项目,类似于 npx create-react-app,但适用于Rust框架项目。

crates.io version Crates.io Downloads crates.io license Github image

支持

Matrix image

文档


安装

目前仅在crates.io上可用

cargo install servust

使用方法

Usage: servust [OPTIONS] --framework <FRAMEWORK> --orm <ORM> <NAME>

Arguments:
  <NAME>  The name of the server

Options:
  -f, --framework <FRAMEWORK>  library/framework to be used (actix, warp, axum, tonic)
  -o, --orm <ORM>              ORM to be used (diesel, sea-orm)
  -d, --database <DATABASE>    database to be used (postgres, mysql, sqlite) default: postgres
  -h, --help                   Print help information
  -V, --version                Print version information

示例

servust --framework actix --orm diesel --database postgres my-server

CLI Run

支持

框架

ORM

  • Diesel.rs
  • Sea-ORM

数据库

  • Postgres
  • MySQL
  • SQLite

类型

  • 带有ORM + 数据库
  • 无ORM / 数据库
  • 仅数据库

依赖项

~8–21MB
~301K SLoC