https://github.com/alextanhongpin/rust-api
Designing the structure for API with Rust Rocket
https://github.com/alextanhongpin/rust-api
rocket rust
Last synced: about 2 months ago
JSON representation
Designing the structure for API with Rust Rocket
- Host: GitHub
- URL: https://github.com/alextanhongpin/rust-api
- Owner: alextanhongpin
- Created: 2018-03-09T15:38:21.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-04-26T09:29:49.000Z (about 8 years ago)
- Last Synced: 2025-03-24T16:15:20.327Z (about 1 year ago)
- Topics: rocket, rust
- Language: Rust
- Size: 2.4 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Rust API
Basic setup for Rust API project with Rocket.
## Install
```bash
$ curl https://sh.rustup.rs -sSf | sh
```
## Setup
```bash
$ rustup default nightly
$ rustup override set nightly
$ rustup update && cargo update
```
## Rust Multi-stage build
The dockerized image is only `13MB` in size:
```bash
# Build the docker image
$ docker build -t alextanhongpin/rust-api .
$ docker images | grep rust
alextanhongpin/rust-api latest 8f4359bacb1c 16 hours ago 13MB
```