diff --git a/Cargo.lock b/Cargo.lock index 5759441..b187416 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -86,10 +86,7 @@ name = "bat-assetbundle" version = "0.1.0" dependencies = [ "anyhow", - "byteorder", "hex", - "lz4", - "lzma-rs", "serde", "serde_json", "thiserror", @@ -164,8 +161,6 @@ version = "0.1.0" dependencies = [ "anyhow", "blake3", - "bsdiff", - "json-patch", "serde", "serde_json", "tempfile", @@ -204,12 +199,6 @@ dependencies = [ "generic-array", ] -[[package]] -name = "bsdiff" -version = "0.2.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b6709158fe6ca66c1f32eb27b4ae5997c67b0df350ae185831233af3e7a91213" - [[package]] name = "byteorder" version = "1.5.0" @@ -729,28 +718,6 @@ version = "1.0.18" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8f42a60cbdf9a97f5d2305f08a87dc4e09308d1276d28c869c684d7777685682" -[[package]] -name = "json-patch" -version = "4.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7421438de105a0827e44fadd05377727847d717c80ce29a229f85fd04c427b72" -dependencies = [ - "jsonptr", - "serde", - "serde_json", - "thiserror", -] - -[[package]] -name = "jsonptr" -version = "0.7.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a5a3cc660ba5d72bce0b3bb295bf20847ccbb40fd423f3f05b61273672e561fe" -dependencies = [ - "serde", - "serde_json", -] - [[package]] name = "lazy_static" version = "1.5.0" diff --git a/crates/bat-assetbundle/Cargo.toml b/crates/bat-assetbundle/Cargo.toml index 24fa6cb..7525d87 100644 --- a/crates/bat-assetbundle/Cargo.toml +++ b/crates/bat-assetbundle/Cargo.toml @@ -12,11 +12,8 @@ serde.workspace = true serde_json.workspace = true tracing.workspace = true -# Unity AssetBundle 解析需要的依赖 -byteorder = "1.5" -lz4 = "1.28" -# LZMA 解压缩 -lzma-rs = "0.3" +# 注意:byteorder、lz4、lzma-rs 等 UnityFS 解析/解压依赖待解析器真正实现时 +# 再按需引入,避免占位阶段白增编译负担。 [dev-dependencies] hex = "0.4" diff --git a/crates/bat-patch/Cargo.toml b/crates/bat-patch/Cargo.toml index c41f315..bbffba1 100644 --- a/crates/bat-patch/Cargo.toml +++ b/crates/bat-patch/Cargo.toml @@ -12,11 +12,8 @@ serde.workspace = true serde_json.workspace = true blake3.workspace = true -# Binary diff/patch -bsdiff = "0.2" - -# JSON patch -json-patch = "4.2" +# 注意:bsdiff(binary diff/patch)与 json-patch(RFC 6902)等具体算法依赖 +# 待 Patch 引擎真正实现时再按需引入,避免占位阶段白增编译负担。 [dev-dependencies] tempfile = "3.14"