mirror of
https://github.com/Yuyi-Oak/BlueArchiveToolkit.git
synced 2026-09-18 10:54:55 +08:00
实现 Binary、JSON、Text patch 与通用 manifest 校验基础。 验证:cargo test -p bat-patch --locked;cargo clippy -p bat-patch --all-targets --locked -- -D warnings。
28 lines
518 B
Rust
28 lines
518 B
Rust
//! # BAT Patch
|
|
//!
|
|
//! Patch 引擎核心实现
|
|
//!
|
|
//! 支持:
|
|
//! - Binary Diff/Patch
|
|
//! - JSON Patch
|
|
//! - Rollback
|
|
//! - Integrity Check
|
|
|
|
#![warn(missing_docs)]
|
|
#![warn(clippy::all)]
|
|
|
|
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");
|