https://github.com/giripriyadarshan/servust
generate quick templates of rust backend servers
https://github.com/giripriyadarshan/servust
orm rust server
Last synced: 11 months ago
JSON representation
generate quick templates of rust backend servers
- Host: GitHub
- URL: https://github.com/giripriyadarshan/servust
- Owner: giripriyadarshan
- License: mit
- Created: 2022-09-03T07:39:06.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2023-10-10T14:25:51.000Z (over 2 years ago)
- Last Synced: 2025-02-28T13:09:27.707Z (over 1 year ago)
- Topics: orm, rust, server
- Language: Rust
- Homepage: https://servust.giripriyadarshan.com
- Size: 1.18 MB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Servust
Servust is a simple CLI tool to create a new project from a template, kind of like `npx create-react-app` but for rust frameworks project.
[![crates.io version]][crates.io link] [![Crates.io Downloads]][crates.io link] [![crates.io license]][crates.io link] [![Github image]][Github status]
Support:
[![Matrix image]][Matrix link]
### [Documentation](https://servust.giripriyadarshan.com)
---
### Installation
Currently only available on crates.io
```bash
cargo install servust
```
### Usage
```bash
Usage: servust [OPTIONS] --framework --orm
Arguments:
The name of the server
Options:
-f, --framework library/framework to be used (actix, warp, axum, tonic)
-o, --orm ORM to be used (diesel, sea-orm)
-d, --database database to be used (postgres, mysql, sqlite) default: postgres
-h, --help Print help information
-V, --version Print version information
```
### Example
```bash
servust --framework actix --orm diesel --database postgres my-server
```

### Support
#### Frameworks
- [x] [actix](https://actix.rs)
- [x] [tonic](https://github.com/hyperium/tonic)
- [x] [salvo](https://salvo.rs)
- [x] [axum](https://github.com/tokio-rs/axum)
- [ ] rocket
- [ ] warp
#### ORMs
- [x] Diesel.rs
- [x] Sea-ORM
#### Databases
- [x] Postgres
- [x] MySQL
- [x] SQLite
#### Types
- [x] With ORM + Database
- [ ] Without ORM / Database
- [ ] With Database only
[crates.io link]: https://crates.io/crates/servust
[crates.io version]: https://img.shields.io/crates/v/servust
[Crates.io Downloads]: https://img.shields.io/crates/d/servust
[crates.io license]: https://img.shields.io/crates/l/servust
[Github image]: https://github.com/giripriyadarshan/servust/workflows/ci/badge.svg
[Github status]: https://github.com/giripriyadarshan/servust/actions
[Matrix image]: https://img.shields.io/matrix/giripriyadarshan-servust:matrix.org
[Matrix link]: https://matrix.to/#/#giripriyadarshan-servust:matrix.org