Fix compilation error without lobby feature

This commit is contained in:
timvisee
2021-11-22 20:35:49 +01:00
parent 20902e6a94
commit 8f2ce9b4b8
2 changed files with 3 additions and 2 deletions

View File

@@ -28,7 +28,7 @@ rcon = ["rust_rcon", "async-std"]
# Lobby support
# Add lobby join method, keeps client in fake lobby world until server is ready.
lobby = ["named-binary-tag", "quartz_nbt", "uuid"]
lobby = ["md-5", "named-binary-tag", "quartz_nbt", "uuid"]
[dependencies]
anyhow = "1.0"
@@ -42,7 +42,6 @@ dotenv = "0.15"
flate2 = { version = "1.0", default-features = false, features = ["default"] }
futures = { version = "0.3", default-features = false, features = ["executor"] }
log = "0.4"
md-5 = "0.9"
minecraft-protocol = { git = "https://github.com/timvisee/rust-minecraft-protocol", rev = "356ea54" }
notify = "4.0"
pretty_env_logger = "0.4"
@@ -61,6 +60,7 @@ rust_rcon = { package = "rcon", version = "0.5.2", optional = true }
async-std = { version = "1.9.0", deafult-features = false, optional = true }
# Feature: lobby
md-5 = { version = "0.9", optional = true }
named-binary-tag = { version = "0.6", optional = true }
quartz_nbt = { version = "0.2", optional = true }
uuid = { version = "0.7", optional = true, features = ["v3"] }

View File

@@ -2,6 +2,7 @@ pub mod ban;
#[cfg(feature = "rcon")]
pub mod rcon;
pub mod server_properties;
#[cfg(feature = "lobby")]
pub mod uuid;
/// Minecraft ticks per second.