From ea64fba7f655b9afa03d57e8590c16e024f396f3 Mon Sep 17 00:00:00 2001 From: mat <27899617+mat-1@users.noreply.github.com> Date: Fri, 5 Jul 2024 00:45:45 -0500 Subject: upgrade to simdnbt 0.6 (#160) --- azalea-buf/Cargo.toml | 6 +++--- azalea-buf/azalea-buf-macros/Cargo.toml | 4 ++-- azalea-buf/src/read.rs | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) (limited to 'azalea-buf') diff --git a/azalea-buf/Cargo.toml b/azalea-buf/Cargo.toml index 1b87957c..3af9722c 100644 --- a/azalea-buf/Cargo.toml +++ b/azalea-buf/Cargo.toml @@ -9,13 +9,13 @@ version = "0.10.2" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -simdnbt = { version = "0.5", git = "https://github.com/azalea-rs/simdnbt" } +simdnbt = "0.6" azalea-buf-macros = { path = "./azalea-buf-macros", version = "0.10.0" } byteorder = "^1.5.0" tracing = "0.1.40" serde_json = { version = "^1.0", optional = true } -thiserror = "1.0.59" -uuid = "^1.8.0" +thiserror = "1.0.61" +uuid = "^1.9.1" [features] serde_json = ["dep:serde_json"] diff --git a/azalea-buf/azalea-buf-macros/Cargo.toml b/azalea-buf/azalea-buf-macros/Cargo.toml index 61dd76ee..63f420c4 100644 --- a/azalea-buf/azalea-buf-macros/Cargo.toml +++ b/azalea-buf/azalea-buf-macros/Cargo.toml @@ -11,6 +11,6 @@ proc-macro = true # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -proc-macro2 = "^1.0.81" +proc-macro2 = "^1.0.86" quote = "^1.0.36" -syn = { version = "^2.0.60", features = ["extra-traits"] } +syn = { version = "^2.0.68", features = ["extra-traits"] } diff --git a/azalea-buf/src/read.rs b/azalea-buf/src/read.rs index ad9766c0..d5961c78 100755 --- a/azalea-buf/src/read.rs +++ b/azalea-buf/src/read.rs @@ -344,13 +344,13 @@ impl McBufReadable for [T; N] { impl McBufReadable for simdnbt::owned::NbtTag { fn read_from(buf: &mut Cursor<&[u8]>) -> Result { - Ok(simdnbt::owned::NbtTag::read(buf)?) + Ok(simdnbt::owned::read_tag(buf)?) } } impl McBufReadable for simdnbt::owned::NbtCompound { fn read_from(buf: &mut Cursor<&[u8]>) -> Result { - match simdnbt::owned::NbtTag::read(buf)? { + match simdnbt::owned::read_tag(buf)? { simdnbt::owned::NbtTag::Compound(compound) => Ok(compound), _ => Err(BufReadError::Custom("Expected compound tag".to_string())), } -- cgit v1.2.3