Code for "Zero To Production In Rust", a book on API development using Rust.
Find a file
Luca Palmieri 3e553eaf60
Chapter04 (#9)
* Add chapter 4 code.

* Add logger middleware.

* Add env_logger.

* Instrumented.

* Test logs.

* Introduce instrument.

* Refactor handler.

* Use TracingLogger.

* Update.

* Fix linter error.
2020-09-27 17:09:42 +01:00
.github/workflows Chapter03, Part 1 (#2) 2020-08-25 22:19:53 +01:00
chapter03-0 Fix Cargo.toml file. 2020-08-23 12:41:41 +01:00
chapter03-1 Make sure to match the state of the tests folder at the end of chapter 3 2020-09-21 13:50:01 +01:00
chapter04 Chapter04 (#9) 2020-09-27 17:09:42 +01:00
.gitignore Scaffolding 2020-08-23 11:34:29 +01:00
Cargo.lock Chapter04 (#9) 2020-09-27 17:09:42 +01:00
Cargo.toml Chapter04 (#9) 2020-09-27 17:09:42 +01:00
README.md Fix code fences. 2020-08-23 11:56:30 +01:00

Zero To Production / Code

This repository complements the Zero To Production book: it hosts snapshots of the codebase of our email newsletter project at end of each chapter.

It is structured as a cargo workspace: running cargo build will build the codebase for all chapters. If you want to build/test/run the code for a specific chapter, just move into its folder! E.g.:

# Run tests for the first part of Chapter 3
cd chapter03-0
cargo test

Alternatively, from the top-level folder, you can specify the binary you are interested into:

# Run the application as it is at end of the first part of Chapter 3
cargo run --bin chapter03-0