From 84e79bd179d230faf7ec3fc81b74b73fb70961d4 Mon Sep 17 00:00:00 2001 From: Hector van der Aa Date: Fri, 5 Dec 2025 19:11:22 +0100 Subject: [PATCH] Cleanup --- Cargo.toml | 6 +++--- src/instance.rs | 2 -- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index e5585f3..7f10508 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -15,14 +15,14 @@ default = ["core", "events", "mc-vanilla"] # Core runtime requirements for the currently implemented functionality. core = ["dep:thiserror", "dep:tokio", "dep:tokio-stream", "dep:tokio-util"] # Placeholder for upcoming event-driven functionality. -events = ["dep:uuid"] +events = ["dep:uuid", "dep:chrono", "dep:regex"] mc-vanilla = [] # Add new feature groups here; attach their optional dependencies to the relevant feature list. [dependencies] -chrono = "0.4.42" -regex = "1.12.2" +chrono = {version = "0.4.42", optional = true} +regex = {version = "1.12.2", optional = true} thiserror = { version = "2.0.17", optional = true } # Core async runtime and utilities # Add new feature-specific optional dependencies alongside the relevant feature entry above. diff --git a/src/instance.rs b/src/instance.rs index dccaaa2..00d4a8c 100644 --- a/src/instance.rs +++ b/src/instance.rs @@ -280,12 +280,10 @@ impl InstanceHandle { .subscribe(StreamSource::Stdout) .map_err(|_| ServerError::NoStdoutPipe)?; let shutdown = self.shutdown.clone(); - // TODO: Stream events!!!! let _event_tx = self.events_tx.clone(); #[cfg(feature = "mc-vanilla")] if self.data.mc_type == MinecraftType::Vanilla { - use crate::config::LogMeta; tokio::spawn(async move { let mut rx = stdout_stream;