From 04b4cf3047f34cd99c17282e33494d4ffedf360b Mon Sep 17 00:00:00 2001 From: shenjack <3695888@qq.com> Date: Mon, 11 Mar 2024 01:35:28 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=B5=8B=E8=AF=95=E5=8A=9F?= =?UTF-8?q?=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- shen-nbt5/Cargo.toml | 1 + shen-nbt5/src/tests.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/shen-nbt5/Cargo.toml b/shen-nbt5/Cargo.toml index 3b43295..4fdd001 100644 --- a/shen-nbt5/Cargo.toml +++ b/shen-nbt5/Cargo.toml @@ -20,6 +20,7 @@ serde = { version = "1.0", features = ["derive"], optional = true } [features] default = [] serde = ["dep:serde"] +test = [] # test dep [dev-dependencies] diff --git a/shen-nbt5/src/tests.rs b/shen-nbt5/src/tests.rs index 5ab5a0d..0ad6a10 100644 --- a/shen-nbt5/src/tests.rs +++ b/shen-nbt5/src/tests.rs @@ -515,6 +515,7 @@ mod nbt { } #[test] + #[cfg(feature = "test")] fn file_sys_test() { // 测试所有能直接找到的 .nbt 文件 // es -r .*\.nbt