- 创建 Cargo.toml 依赖配置 - 实现配置管理模块 (config/) - 实现核心服务模块 (core/) - 文档处理引擎 - 翻译服务 - 实现基础设施模块 (infrastructure/) - 存储模块 - 实现 UI 模块 (ui/) - 集成 logging (tracing) 项目结构: ├── Cargo.toml ├── src/ │ ├── main.rs │ ├── config/mod.rs │ ├── core/ │ │ ├── mod.rs │ │ ├── document.rs │ │ └── translation.rs │ ├── infrastructure/ │ │ ├── mod.rs │ │ └── storage.rs │ └── ui/ │ └── mod.rs
9 lines
184 B
Rust
9 lines
184 B
Rust
//! 核心服务模块
|
|
//!
|
|
//! 包含文档处理、翻译等功能
|
|
|
|
pub mod document;
|
|
pub mod translation;
|
|
|
|
pub use document::DocumentEngine;
|
|
pub use translation::TranslationService; |