File size: 339 Bytes
229ceef | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 | //! 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() {}
|