From 7f761df3e7b72ce75be21ab9b3a533d0a5a938a5 Mon Sep 17 00:00:00 2001 From: mat Date: Fri, 12 Dec 2025 06:07:51 -0100 Subject: fix compilation errors with some feature combinations --- azalea-protocol/Cargo.toml | 5 ++--- azalea-protocol/src/connect.rs | 1 + azalea-protocol/src/lib.rs | 1 - 3 files changed, 3 insertions(+), 4 deletions(-) (limited to 'azalea-protocol') diff --git a/azalea-protocol/Cargo.toml b/azalea-protocol/Cargo.toml index 1c299b49..5a321120 100644 --- a/azalea-protocol/Cargo.toml +++ b/azalea-protocol/Cargo.toml @@ -17,7 +17,7 @@ azalea-block.workspace = true azalea-brigadier = { workspace = true, features = ["azalea-buf"] } azalea-buf.workspace = true azalea-chat = { workspace = true, features = ["numbers", "azalea-buf"] } -azalea-core = { workspace = true, optional = true } +azalea-core.workspace = true azalea-crypto = { workspace = true, features = ["signing"] } azalea-entity.workspace = true azalea-inventory.workspace = true @@ -44,9 +44,8 @@ indexmap.workspace = true reqwest = { workspace = true, optional = true, features = ["socks"] } [features] -default = ["packets", "online-mode"] +default = ["online-mode"] connecting = [] -packets = ["connecting", "dep:azalea-core"] online-mode = ["azalea-auth/online-mode", "dep:reqwest"] [lints] diff --git a/azalea-protocol/src/connect.rs b/azalea-protocol/src/connect.rs index fd599ff8..85fc643e 100644 --- a/azalea-protocol/src/connect.rs +++ b/azalea-protocol/src/connect.rs @@ -299,6 +299,7 @@ impl Display for Proxy { } } +#[cfg(feature = "online-mode")] impl From for reqwest::Proxy { fn from(proxy: Proxy) -> Self { reqwest::Proxy::all(proxy.to_string()) diff --git a/azalea-protocol/src/lib.rs b/azalea-protocol/src/lib.rs index b5c0fd1e..b481afb8 100644 --- a/azalea-protocol/src/lib.rs +++ b/azalea-protocol/src/lib.rs @@ -21,7 +21,6 @@ use std::{ pub mod common; #[cfg(feature = "connecting")] pub mod connect; -#[cfg(feature = "packets")] pub mod packets; pub mod read; pub mod resolve; -- cgit v1.2.3