mirror of
https://github.com/Yuyi-Oak/BlueArchiveToolkit.git
synced 2026-07-22 07:06:43 +08:00
35 lines
615 B
Rust
35 lines
615 B
Rust
//! # BAT CAS Engine
|
|
//!
|
|
//! Content Addressable Storage (CAS) 引擎核心实现
|
|
//!
|
|
//! 提供基于内容寻址的存储系统,支持:
|
|
//! - Hash 去重
|
|
//! - 引用计数
|
|
//! - 垃圾回收
|
|
//! - 多版本共享
|
|
//! - 完整性校验
|
|
|
|
#![warn(missing_docs)]
|
|
#![warn(clippy::all)]
|
|
|
|
pub mod error;
|
|
pub mod hash;
|
|
pub mod refcount;
|
|
pub mod repository;
|
|
pub mod storage;
|
|
|
|
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());
|
|
}
|
|
}
|