Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Tutorial

This chapter introduces the basics of using hooq across three lessons plus a wrap‑up page.

  1. #[hooq] to capture error lines
  2. Customize hooks with #[hooq::method(...)]
  3. Create / use presets via flavors
  4. Summary

We assume the hooq crate has already been added.

Adding hooq

Add via cargo:

cargo add hooq

Or specify the latest version in Cargo.toml (see crates.io).

Some features exist, but commonly used ones are in the default feature set. See Features.