diff options
| -rw-r--r-- | azalea-client/Cargo.toml | 2 | ||||
| -rw-r--r-- | azalea-client/src/plugins/login.rs | 2 | ||||
| -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 |
5 files changed, 5 insertions, 6 deletions
diff --git a/azalea-client/Cargo.toml b/azalea-client/Cargo.toml index f3c1bce5..74052e53 100644 --- a/azalea-client/Cargo.toml +++ b/azalea-client/Cargo.toml @@ -17,7 +17,7 @@ azalea-crypto.workspace = true azalea-entity.workspace = true azalea-inventory.workspace = true azalea-physics.workspace = true -azalea-protocol = { workspace = true, features = ["packets", "connecting"] } +azalea-protocol = { workspace = true, features = ["connecting"] } azalea-registry.workspace = true azalea-world.workspace = true bevy_app.workspace = true diff --git a/azalea-client/src/plugins/login.rs b/azalea-client/src/plugins/login.rs index 46ab20c4..5bfefe44 100644 --- a/azalea-client/src/plugins/login.rs +++ b/azalea-client/src/plugins/login.rs @@ -119,7 +119,7 @@ pub async fn auth_with_account( let private_key = encrypt_res.secret_key; #[cfg(not(feature = "online-mode"))] - let _ = account; + let _ = (account, proxy); #[cfg(feature = "online-mode")] if packet.should_authenticate { 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; |
