This commit is contained in:
2025-12-05 19:11:22 +01:00
parent 9c4c23f881
commit 84e79bd179
2 changed files with 3 additions and 5 deletions

View File

@@ -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.

View File

@@ -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;