Loading tutorials
cargo run and cargo test, and have seen raw pointers and the unsafe keyword at a basic level. Later chapters install tools with rustup, but this chapter needs no installation.3 min readcargo run and cargo test, and have a basic grasp of raw pointers and the unsafe keyword.3 min readcargo run and cargo test, and have seen raw pointers and the unsafe keyword. The previous chapter showed that undefined behavior (UB) can pass tests unnoticed. Here you will see how Miri finds it.2 min readcargo run, cargo test), and how to install toolchains and components with rustup. You should also have a basic grasp of raw pointers and the unsafe keyword.2 min readcargo +nightly miri run and understand raw pointers and unsafe at a basic level. Here you will learn to read the report Miri prints when it finds undefined behavior (UB).2 min readunsafe. It also assumes you can run cargo +nightly miri run, which an earlier chapter covered. Here you will see how Miri reports the two most common memory errors and how to read the reports.2 min readcargo miri test and read a basic Miri report, as covered in earlier chapters. You should also know what unsafe allows and what a raw pointer is.2 min readcargo miri test and read a basic Miri report. It also assumes you know what a raw pointer is and how rustup installs components. Here you will learn how to change Miri's behavior with the MIRIFLAGS environment variable.3 min readcargo +nightly miri run as shown in earlier chapters.2 min readcargo miri test. You will see how Miri detects aliasing violations, read its report, and switch between its two aliasing models.3 min readstatic mut, and the basics of running cargo miri from the earlier chapters. It shows how Miri finds data races and how to fix them.3 min readcargo miri test, read a Miri error report, and know the basics of raw pointers and unsafe. Miri tells you where undefined behavior (UB) happened. Fixing it means changing the code so the operation is valid, not silencing the report.2 min readcargo miri test and read a Miri report, as covered earlier. It also assumes you know basic cfg attributes and Cargo test layout. The goal is a test suite that exercises your unsafe code under Miri in seconds or minutes, not hours.2 min readcargo +nightly miri test locally, know what MIRIFLAGS does, and have written tests that use cfg(miri) to shrink their workload. Here you will move that setup into continuous integration (CI), so every change is checked automatically.3 min readcargo miri test, read a Miri report, and know the basics of raw pointers and unsafe. It covers what a passing Miri run proves and what it leaves open.2 min read