#![cfg(all(
feature = "outbox",
feature = "inbox",
feature = "json",
feature = "testing",
feature = "postgres",
feature = "mysql",
feature = "sqlite"
))]
use std::env;
#[path = "../live/mod.rs"]
mod live;
#[path = "../threads/pool.rs"]
mod pool;
#[path = "../threads/probe.rs"]
mod probe;
mod manual;
mod records;
mod registry;
mod stand;
mod threads;
mod tracked;
const SWITCH: &str = "RUSTSTREAM_SQLX_OUTBOX";
fn tracking_on() -> bool {
if env::var(SWITCH).as_deref() == Ok("on") {
return true;
}
assert!(
env::var(live::REQUIRE_LIVE).map_or(true, |value| value.is_empty()),
"{} is set, so the outbox suite must run, but {SWITCH} is not `on`",
live::REQUIRE_LIVE,
);
eprintln!("{SWITCH} is not `on`; skipping the outbox suite");
false
}