Skip to content

Latest commit

 

History

History
32 lines (23 loc) · 825 Bytes

README.md

File metadata and controls

32 lines (23 loc) · 825 Bytes

Learning goals

  • Basic rust usage
  • CI/CD setup
  • Containerization
  • Cloud service integration
  • Metrics, logs, traces
  • Familiarize with rust toolchain: testing, async/await

Notes

cargo watch -x check -x test -x run to run compilation/test/run on file changes.

To check test coverage:

cargo install cargo-tarpaulin
cargo tarpaulin --ignore-tests

To disable a clippy warning: #[allow(clippy::lint_name)]

TODOs

Ch3

  • Understand mod, pub use (e.g., in mod.rs).
  • Understand when to use, e.g. use crate::routes vs use zero2prod::startup::run.

Ch4

  • Understand all those tracing related crates (e.g., tracing::instrument).
  • Wire tracing with open telemetry (tracing-opentelemetry).
  • tracing v.s. log.