Skip to main content

Requirements

dbgflow requires Rust 1.85 or later (edition 2024). Check your version with:
Run rustup update stable to upgrade if needed.

Add the library crate

Run cargo add from inside your project directory:
Or add it manually to your Cargo.toml:

Install the CLI

The dbgflow binary provides the demo, serve, and test subcommands. Install it from crates.io:
Verify the install:

Import the prelude

In any file where you want to use dbgflow macros or capture helpers, import the prelude:
This brings the following into scope:

The three crates

dbgflow is published as three separate crates. In most cases you only need dbgflow.
When you add dbgflow to your Cargo.toml, both dbgflow-core and dbgflow-macros are pulled in automatically as transitive dependencies. You do not need to list them separately.