feat(patch): 补齐通用补丁引擎基础

实现 Binary、JSON、Text patch 与通用 manifest 校验基础。

验证:cargo test -p bat-patch --locked;cargo clippy -p bat-patch --all-targets --locked -- -D warnings。
This commit is contained in:
2026-07-31 00:21:50 +08:00
parent 3e9bb20d79
commit f4880a71bd
5 changed files with 1084 additions and 20 deletions
+6
View File
@@ -14,8 +14,14 @@
pub mod binary;
pub mod error;
pub mod json;
pub mod manifest;
pub mod text;
pub use error::{PatchError, Result};
pub use manifest::{
PatchIntegrity, PatchKind, PatchManifest, PatchManifestFile, PatchRollback,
PATCH_MANIFEST_VERSION,
};
/// Patch 引擎版本号
pub const VERSION: &str = env!("CARGO_PKG_VERSION");