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