//! Demonstrate `cargo_check_producer`: build a `Producer` that runs
//! `cargo check --message-format=json` and emits one `CheckResult` per
//! diagnostic.
//!
//! The example only constructs the producer by default. Set the env var
//! `DEV_TOOLS_EXAMPLE_RUN=1` to actually spawn `cargo check` and print
//! the resulting JSON report. Opt-in so CI stays fast.
//!
//! ```text
//! cargo run --example cargo_check_producer
//! DEV_TOOLS_EXAMPLE_RUN=1 cargo run --example cargo_check_producer
//! ```
use cargo_check_producer;
use Producer;