mirror of
https://github.com/Yuyi-Oak/BlueArchiveToolkit.git
synced 2026-07-22 09:15:15 +08:00
chore: establish development baseline
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
//! # BAT CAS Engine
|
||||
//!
|
||||
//! Content Addressable Storage (CAS) 引擎核心实现
|
||||
//!
|
||||
//! 提供基于内容寻址的存储系统,支持:
|
||||
//! - Hash 去重
|
||||
//! - 引用计数
|
||||
//! - 垃圾回收
|
||||
//! - 多版本共享
|
||||
//! - 完整性校验
|
||||
|
||||
#![warn(missing_docs)]
|
||||
#![warn(clippy::all)]
|
||||
|
||||
pub mod error;
|
||||
pub mod storage;
|
||||
pub mod hash;
|
||||
pub mod refcount;
|
||||
|
||||
pub use error::{CasError, Result};
|
||||
|
||||
/// CAS Engine 版本号
|
||||
pub const VERSION: &str = env!("CARGO_PKG_VERSION");
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
|
||||
#[test]
|
||||
fn test_version() {
|
||||
assert!(!VERSION.is_empty());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user