zbigniewzolnierowicz / zero2prod

Zero to Production book project

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Zero to Production book project

Configure linker

I used mold, simply install it with your package manager of choice and paste this into ~/.cargo/config.toml

[target.x86_64-unknown-linux-gnu]
linker = "clang"
rustflags = ["-C", "link-arg=-fuse-ld=/usr/bin/mold"]

Development loop

Install bacon and run this command:

bacon

Code coverage

Install cargo-tarpaulin and run this command:

cargo tarpaulin --ignore-tests

Better testing

Install cargo-nextest and run this command:

cargo nextest run

For continuous development testing, run:

bacon test

Or run bacon and press T.

Environment variables to set

Get an API key from Postmark and set APP_APPLICATION__EMAIL_TOKEN=<api key>

About

Zero to Production book project


Languages

Language:Rust 95.2%Language:Shell 3.4%Language:Dockerfile 1.1%Language:HTML 0.2%