aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Cargo.lock5
-rw-r--r--azalea-chat/src/numbers.rs2
-rw-r--r--azalea-entity/Cargo.toml3
-rw-r--r--azalea-registry/src/identifier.rs3
-rw-r--r--azalea-registry/src/lib.rs6
-rw-r--r--azalea-world/Cargo.toml1
-rw-r--r--azalea/Cargo.toml1
7 files changed, 7 insertions, 14 deletions
diff --git a/Cargo.lock b/Cargo.lock
index 8e2ac4c0..ba67e69e 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -239,7 +239,6 @@ dependencies = [
"rand 0.10.0-rc.5",
"rustc-hash",
"serde",
- "thiserror 2.0.17",
"tokio",
"tracing",
"uuid",
@@ -414,7 +413,6 @@ dependencies = [
name = "azalea-entity"
version = "0.15.0+mc1.21.11"
dependencies = [
- "azalea-auth",
"azalea-block",
"azalea-buf",
"azalea-chat",
@@ -426,10 +424,8 @@ dependencies = [
"bevy_ecs",
"derive_more",
"enum-as-inner",
- "indexmap",
"nohash-hasher",
"parking_lot",
- "simdnbt",
"thiserror 2.0.17",
"tracing",
"uuid",
@@ -565,7 +561,6 @@ dependencies = [
"parking_lot",
"rustc-hash",
"serde",
- "thiserror 2.0.17",
"tracing",
]
diff --git a/azalea-chat/src/numbers.rs b/azalea-chat/src/numbers.rs
index 6f943621..60b599e8 100644
--- a/azalea-chat/src/numbers.rs
+++ b/azalea-chat/src/numbers.rs
@@ -1,10 +1,12 @@
//! Contains a few ways to style numbers. At the time of writing, Minecraft only
//! uses this for rendering scoreboard objectives.
+#[cfg(feature = "azalea-buf")]
use std::io::{self, Cursor, Write};
#[cfg(feature = "azalea-buf")]
use azalea_buf::{AzaleaRead, AzaleaWrite};
+#[cfg(feature = "azalea-buf")]
use azalea_registry::builtin::NumberFormatKind;
use simdnbt::owned::Nbt;
diff --git a/azalea-entity/Cargo.toml b/azalea-entity/Cargo.toml
index fcda70bb..0e62cbd4 100644
--- a/azalea-entity/Cargo.toml
+++ b/azalea-entity/Cargo.toml
@@ -7,7 +7,6 @@ license.workspace = true
repository.workspace = true
[dependencies]
-azalea-auth.workspace = true
azalea-block.workspace = true
azalea-buf.workspace = true
azalea-chat = { workspace = true, features = ["azalea-buf"] }
@@ -21,11 +20,9 @@ derive_more.workspace = true
enum-as-inner.workspace = true
nohash-hasher.workspace = true
parking_lot.workspace = true
-simdnbt.workspace = true
thiserror.workspace = true
tracing.workspace = true
uuid.workspace = true
-indexmap.workspace = true
[lints]
workspace = true
diff --git a/azalea-registry/src/identifier.rs b/azalea-registry/src/identifier.rs
index c60f8381..635c5935 100644
--- a/azalea-registry/src/identifier.rs
+++ b/azalea-registry/src/identifier.rs
@@ -8,6 +8,7 @@ use std::{
};
use azalea_buf::{AzaleaRead, AzaleaWrite, BufReadError};
+#[cfg(feature = "serde")]
use serde::{Deserialize, Deserializer, Serialize, Serializer, de};
use simdnbt::{FromNbtTag, ToNbtTag, owned::NbtTag};
@@ -102,6 +103,7 @@ impl AzaleaWrite for Identifier {
}
}
+#[cfg(feature = "serde")]
impl Serialize for Identifier {
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where
@@ -111,6 +113,7 @@ impl Serialize for Identifier {
}
}
+#[cfg(feature = "serde")]
impl<'de> Deserialize<'de> for Identifier {
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>
where
diff --git a/azalea-registry/src/lib.rs b/azalea-registry/src/lib.rs
index 743f0deb..e5157e4f 100644
--- a/azalea-registry/src/lib.rs
+++ b/azalea-registry/src/lib.rs
@@ -291,10 +291,8 @@ impl<R: Registry + Serialize, Direct: AzaleaRead + AzaleaWrite + Serialize> Seri
}
}
-impl<
- R: Registry + Serialize + FromNbtTag,
- Direct: AzaleaRead + AzaleaWrite + Serialize + FromNbtTag,
-> FromNbtTag for Holder<R, Direct>
+impl<R: Registry + FromNbtTag, Direct: AzaleaRead + AzaleaWrite + FromNbtTag> FromNbtTag
+ for Holder<R, Direct>
{
fn from_nbt_tag(tag: NbtTag) -> Option<Self> {
if let Some(reference) = R::from_nbt_tag(tag) {
diff --git a/azalea-world/Cargo.toml b/azalea-world/Cargo.toml
index 6abe6184..5df028b8 100644
--- a/azalea-world/Cargo.toml
+++ b/azalea-world/Cargo.toml
@@ -21,7 +21,6 @@ nohash-hasher.workspace = true
parking_lot.workspace = true
rustc-hash.workspace = true
serde = { workspace = true, optional = true }
-thiserror.workspace = true
tracing.workspace = true
[features]
diff --git a/azalea/Cargo.toml b/azalea/Cargo.toml
index e4adb426..f82a344d 100644
--- a/azalea/Cargo.toml
+++ b/azalea/Cargo.toml
@@ -38,7 +38,6 @@ num-traits.workspace = true
parking_lot.workspace = true
rustc-hash.workspace = true
serde = { workspace = true, optional = true }
-thiserror.workspace = true
tokio.workspace = true
tracing.workspace = true
uuid.workspace = true