This repository has been archived on 2024-07-25. You can view files and clone it, but cannot push or open issues or pull requests.
enve/examples
2022-07-21 20:47:25 +03:00
..
hyper.rs chore: refac examples 2022-07-21 20:10:31 +03:00
readme.md chore: refac examples 2022-07-21 20:10:31 +03:00
rocket.rs chore: refac examples 2022-07-21 20:10:31 +03:00

Diesel

This example shows how you can use itconfig with diesel.

Usage

cd examples/diesel

docker-compose -p itconfig-diesel-example -f docker-compose.example.yml up -d

diesel migration run

cargo run --example diesel

Hyper

This example shows how you can use itconfig with hyper server.

Example was taken from the official hyper example.

Usage

cargo run --example hyper

Rocket

Installation

To install a nightly version of Rust, we recommend using rustup. Install rustup by following the instructions on its website. Once rustup is installed, configure Rust nightly as your default toolchain by running the command:

rustup default nightly

If you prefer, once we setup a project directory in the following section, you can use per-directory overrides to use the nightly version only for your Rocket project by running the following command in the directory:

rustup override set nightly

Usage

cargo run --example roket