Fix compilation error without lobby feature
This commit is contained in:
@@ -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"] }
|
||||
|
@@ -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.
|
||||
|
Reference in New Issue
Block a user