Fix compilation error without lobby feature
This commit is contained in:
@@ -28,7 +28,7 @@ rcon = ["rust_rcon", "async-std"]
|
|||||||
|
|
||||||
# Lobby support
|
# Lobby support
|
||||||
# Add lobby join method, keeps client in fake lobby world until server is ready.
|
# 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]
|
[dependencies]
|
||||||
anyhow = "1.0"
|
anyhow = "1.0"
|
||||||
@@ -42,7 +42,6 @@ dotenv = "0.15"
|
|||||||
flate2 = { version = "1.0", default-features = false, features = ["default"] }
|
flate2 = { version = "1.0", default-features = false, features = ["default"] }
|
||||||
futures = { version = "0.3", default-features = false, features = ["executor"] }
|
futures = { version = "0.3", default-features = false, features = ["executor"] }
|
||||||
log = "0.4"
|
log = "0.4"
|
||||||
md-5 = "0.9"
|
|
||||||
minecraft-protocol = { git = "https://github.com/timvisee/rust-minecraft-protocol", rev = "356ea54" }
|
minecraft-protocol = { git = "https://github.com/timvisee/rust-minecraft-protocol", rev = "356ea54" }
|
||||||
notify = "4.0"
|
notify = "4.0"
|
||||||
pretty_env_logger = "0.4"
|
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 }
|
async-std = { version = "1.9.0", deafult-features = false, optional = true }
|
||||||
|
|
||||||
# Feature: lobby
|
# Feature: lobby
|
||||||
|
md-5 = { version = "0.9", optional = true }
|
||||||
named-binary-tag = { version = "0.6", optional = true }
|
named-binary-tag = { version = "0.6", optional = true }
|
||||||
quartz_nbt = { version = "0.2", optional = true }
|
quartz_nbt = { version = "0.2", optional = true }
|
||||||
uuid = { version = "0.7", optional = true, features = ["v3"] }
|
uuid = { version = "0.7", optional = true, features = ["v3"] }
|
||||||
|
@@ -2,6 +2,7 @@ pub mod ban;
|
|||||||
#[cfg(feature = "rcon")]
|
#[cfg(feature = "rcon")]
|
||||||
pub mod rcon;
|
pub mod rcon;
|
||||||
pub mod server_properties;
|
pub mod server_properties;
|
||||||
|
#[cfg(feature = "lobby")]
|
||||||
pub mod uuid;
|
pub mod uuid;
|
||||||
|
|
||||||
/// Minecraft ticks per second.
|
/// Minecraft ticks per second.
|
||||||
|
Reference in New Issue
Block a user