Initial rewrite start

This commit is contained in:
2025-12-13 01:21:52 +01:00
parent 6dea63f818
commit ea16f34c73
20 changed files with 309 additions and 2841 deletions

View File

@@ -1,36 +1,26 @@
[package]
name = "mineguard"
name = "mgrewrite"
version = "0.1.0"
edition = "2024"
description = "Opinionated Minecraft server supervisor engine built primarily for RustyMine"
readme = "README.md"
homepage = "https://mineguard.h3cx.dev"
repository = "https://github.com/H3ct0r55/MineGuard"
license = "MIT"
# publish set to false during development
publish = false
[features]
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", "dep:chrono", "dep:regex"]
default = ["core", "mc-vanilla"]
mc-vanilla = ["dep:serde", "dep:serde_json", "dep:reqwest"]
# Add new feature groups here; attach their optional dependencies to the relevant feature list.
core = ["dep:serde", "dep:serde_json", "dep:uuid", "dep:tokio", "dep:tokio-util"]
version-custom = []
events = []
mc-vanilla = []
mc-paper = []
tokio = ["dep:tokio"]
[dependencies]
async-trait = "0.1.89"
chrono = {version = "0.4.42", optional = true}
regex = {version = "1.12.2", optional = true}
reqwest = { version = "0.12.24", optional = true, features = ["json"] }
serde = { version = "1.0.228", optional = true, features = ["derive"] }
serde = { version = "1.0.228", features = ["derive"], optional = true }
serde_json = {version = "1.0.145", 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.
tokio = { version = "1.48.0", features = ["process", "rt-multi-thread", "macros", "io-std", "io-util"], optional = true }
tokio-stream = { version = "0.1.17", features = ["full", "io-util", "signal", "tokio-util"], optional = true }
tokio-util = { version = "0.7.17", features = ["full"], optional = true }
thiserror = "2.0.17"
tokio = { version = "1.48.0", features = ["fs", "io-std", "io-util", "process", "rt-multi-thread"], optional = true }
tokio-util ={version = "0.7.17", optional = true}
uuid = { version = "1.19.0", features = ["serde", "v4"], optional = true }