diff options
| author | mat <27899617+mat-1@users.noreply.github.com> | 2024-07-05 00:45:45 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-05 00:45:45 -0500 |
| commit | ea64fba7f655b9afa03d57e8590c16e024f396f3 (patch) | |
| tree | 728293b8cc852bf6b50a55594589a3b93b96c286 /azalea-buf | |
| parent | 350e32d0a9f21103e271e80e63daa5711a78e1d7 (diff) | |
| download | azalea-drasl-ea64fba7f655b9afa03d57e8590c16e024f396f3.tar.xz | |
upgrade to simdnbt 0.6 (#160)
Diffstat (limited to 'azalea-buf')
| -rw-r--r-- | azalea-buf/Cargo.toml | 6 | ||||
| -rw-r--r-- | azalea-buf/azalea-buf-macros/Cargo.toml | 4 | ||||
| -rwxr-xr-x | azalea-buf/src/read.rs | 4 |
3 files changed, 7 insertions, 7 deletions
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<T: McBufReadable, const N: usize> McBufReadable for [T; N] { impl McBufReadable for simdnbt::owned::NbtTag { fn read_from(buf: &mut Cursor<&[u8]>) -> Result<Self, BufReadError> { - 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<Self, BufReadError> { - 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())), } |
