wormz-a / crates /openwa-dll /src /debug_ui.rs
paavohtl's picture
Claude Opus 4.6 (1M context)
refactor: rename openwa-wormkit crate to openwa-dll, output openwa.dll
e5f8547
Raw History Blame Contribute Delete
339 Bytes
//! Wrapper that spawns the openwa-debugui window when OPENWA_DEBUG_UI=1.
//!
//! Only compiled when the "debug-ui" feature is enabled.
#[cfg(feature = "debug-ui")]
pub fn maybe_spawn() {
if std::env::var("OPENWA_DEBUG_UI").is_ok() {
openwa_debugui::spawn();
}
}
#[cfg(not(feature = "debug-ui"))]
pub fn maybe_spawn() {}