fix: feature gate tokio and tracing (#4651)

Signed-off-by: Omar Mohamed <mohamed.omar67492@gmail.com>
This commit is contained in:
Omar Mohamed Khallaf authored and GitHub committed 2025-09-09 19:45:15 +01:00
1 parent 284d6ea68e
commit a9ef9af980
3 files changed
+5

No files matched your search

+2
View File
@@ -82,10 +82,12 @@ pub fn launch_cfg_with_props<P: Clone + 'static, M: 'static>(
let event_loop = create_default_event_loop::<BlitzShellEvent>();
// Turn on the runtime and enter it
#[cfg(feature = "net")]
let rt = tokio::runtime::Builder::new_multi_thread()
.enable_all()
.build()
.unwrap();
#[cfg(feature = "net")]
let _guard = rt.enter();
// Setup hot-reloading if enabled.