diff options
Diffstat (limited to 'azalea-protocol')
| -rw-r--r-- | azalea-protocol/Cargo.toml | 5 | ||||
| -rw-r--r-- | azalea-protocol/src/connect.rs | 1 | ||||
| -rw-r--r-- | azalea-protocol/src/lib.rs | 1 |
3 files changed, 3 insertions, 4 deletions
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<Proxy> 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; |
