Files
BlueArchiveToolkit/core/src/lib.rs
T

37 lines
739 B
Rust
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
//! # BAT Core - 核心领域层
//!
//! BlueArchive Toolkit 的核心领域模型和业务逻辑
//!
//! 本模块包含:
//! - 领域对象(Domain Objects
//! - 仓储接口(Repository Interfaces
//! - 领域服务(Domain Services
//!
//! 设计原则:
//! - 领域层不依赖任何外部技术细节
//! - 所有依赖通过接口注入
//! - 纯粹的业务逻辑
#![warn(missing_docs)]
#![warn(clippy::all)]
pub mod domain;
pub mod error;
pub mod repositories;
pub mod services;
pub use error::{Error, Result};
/// Core 版本号
pub const VERSION: &str = env!("CARGO_PKG_VERSION");
#[cfg(test)]
mod tests {
use super::*;
#[test]
fn test_version() {
assert!(!VERSION.is_empty());
}
}