From e85a9267b886e66f5c18d1b369ba6493f3735a3e Mon Sep 17 00:00:00 2001 From: shenjack <3695888@qq.com> Date: Sun, 10 Mar 2024 16:24:23 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8A=A0=E6=96=87=E6=A1=A3,=E5=8A=A0=E6=96=87?= =?UTF-8?q?=E6=A1=A3,=E8=BF=98=E6=98=AF=E5=8A=A0=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- shen-nbt5/Cargo.toml | 4 ++-- shen-nbt5/src/lib.rs | 20 +++++++++++++++++--- 2 files changed, 19 insertions(+), 5 deletions(-) diff --git a/shen-nbt5/Cargo.toml b/shen-nbt5/Cargo.toml index fded439..fac54f5 100644 --- a/shen-nbt5/Cargo.toml +++ b/shen-nbt5/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "shen-nbt5" -version = "0.4.0" +version = "0.4.1" edition = "2021" description = "Just A FASSST NBT parser/writer" homepage = "https://github.com/shenjackyuanjie/nbt-rust" @@ -8,7 +8,7 @@ repository = "https://github.com/shenjackyuanjie/nbt-rust" read = "README.md" license-file = "../LICENSE" keywords = ["nbt", "minecraft", "parser", "writer", "fast"] -categories = ["game", "parsing", "serialization"] +categories = ["games", "parsing"] authors = ["shenjackyuanjie <3695888@qq.com>", "InfyniteHeap"] # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/shen-nbt5/src/lib.rs b/shen-nbt5/src/lib.rs index 81b95cd..70a1761 100644 --- a/shen-nbt5/src/lib.rs +++ b/shen-nbt5/src/lib.rs @@ -1,7 +1,23 @@ +//! shen-nbt5 +//! +//! NBT 格式解析库 v5 by shenjack and InfyniteHeap +//! +//! 支持格式 +//! +//! - Java 版 NBT +//! +//! - Java 1.20.2+(协议号 >= 764) 及以后 的网路传输 NBT 格式 +//! +//! - 基岩版 实际用于存储的 NBT 格式 +//! +//! - 基岩版 网络 NBT 格式 + + pub mod reader; +pub mod writer; + #[cfg(feature = "serde")] pub mod ser; -pub mod writer; #[cfg(feature = "serde")] use serde; #[cfg(feature = "serde")] @@ -12,8 +28,6 @@ use reader::NbtReader; #[cfg(test)] mod tests; -/// 后面也许会实现的 -/// /// 不同版本的 Nbt 数据细节不同 /// 老要命了 ///