Requirements
dbgflow requires Rust 1.85 or later (edition 2024). Check your version with:rustup update stable to upgrade if needed.
Add the library crate
Runcargo add from inside your project directory:
Cargo.toml:
Install the CLI
Thedbgflow binary provides the demo, serve, and test subcommands. Install it from crates.io:
Import the prelude
In any file where you want to use dbgflow macros or capture helpers, import the prelude:The three crates
dbgflow is published as three separate crates. In most cases you only needdbgflow.
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.