Cleanup
This commit is contained in:
@@ -15,14 +15,14 @@ default = ["core", "events", "mc-vanilla"]
|
|||||||
# Core runtime requirements for the currently implemented functionality.
|
# Core runtime requirements for the currently implemented functionality.
|
||||||
core = ["dep:thiserror", "dep:tokio", "dep:tokio-stream", "dep:tokio-util"]
|
core = ["dep:thiserror", "dep:tokio", "dep:tokio-stream", "dep:tokio-util"]
|
||||||
# Placeholder for upcoming event-driven functionality.
|
# Placeholder for upcoming event-driven functionality.
|
||||||
events = ["dep:uuid"]
|
events = ["dep:uuid", "dep:chrono", "dep:regex"]
|
||||||
|
|
||||||
mc-vanilla = []
|
mc-vanilla = []
|
||||||
# Add new feature groups here; attach their optional dependencies to the relevant feature list.
|
# Add new feature groups here; attach their optional dependencies to the relevant feature list.
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
chrono = "0.4.42"
|
chrono = {version = "0.4.42", optional = true}
|
||||||
regex = "1.12.2"
|
regex = {version = "1.12.2", optional = true}
|
||||||
thiserror = { version = "2.0.17", optional = true }
|
thiserror = { version = "2.0.17", optional = true }
|
||||||
# Core async runtime and utilities
|
# Core async runtime and utilities
|
||||||
# Add new feature-specific optional dependencies alongside the relevant feature entry above.
|
# Add new feature-specific optional dependencies alongside the relevant feature entry above.
|
||||||
|
|||||||
@@ -280,12 +280,10 @@ impl InstanceHandle {
|
|||||||
.subscribe(StreamSource::Stdout)
|
.subscribe(StreamSource::Stdout)
|
||||||
.map_err(|_| ServerError::NoStdoutPipe)?;
|
.map_err(|_| ServerError::NoStdoutPipe)?;
|
||||||
let shutdown = self.shutdown.clone();
|
let shutdown = self.shutdown.clone();
|
||||||
// TODO: Stream events!!!!
|
|
||||||
let _event_tx = self.events_tx.clone();
|
let _event_tx = self.events_tx.clone();
|
||||||
|
|
||||||
#[cfg(feature = "mc-vanilla")]
|
#[cfg(feature = "mc-vanilla")]
|
||||||
if self.data.mc_type == MinecraftType::Vanilla {
|
if self.data.mc_type == MinecraftType::Vanilla {
|
||||||
use crate::config::LogMeta;
|
|
||||||
tokio::spawn(async move {
|
tokio::spawn(async move {
|
||||||
let mut rx = stdout_stream;
|
let mut rx = stdout_stream;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user