Loading lesson…
Level 1 · Apprentice0 XP
cargo test, clippy, benchmarks, documentation tests, and what unsafe really means.
Step 1 / 6
ProblemA rewrite in Rust is supposed to be faster and correct. Without tests and benchmarks, nobody can tell.
← → step
Before this: A web service with axum and sqlx
🛠️ Your turn
Reading is not the skill, doing is. Try for ten minutes before you open the hint. Getting stuck first is what makes the solution stick.
1.Add unit tests, one doc test and one proptest to a small library, set up CI that runs cargo fmt --check, clippy with warnings as errors, and cargo test, and add a criterion benchmark for the hot function.