feat: 项目基础框架搭建 - Phase 1 Issue #1
- 创建 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
This commit is contained in:
52
Cargo.toml
Normal file
52
Cargo.toml
Normal file
@@ -0,0 +1,52 @@
|
||||
[package]
|
||||
name = "readflow"
|
||||
version = "0.1.0"
|
||||
edition = "2021"
|
||||
authors = ["damai <damai@foshanhuiya.com>"]
|
||||
description = "ReadFlow - 面向开发者和知识工作者的阅读工具"
|
||||
repository = "http://192.168.120.110:4000/damai/readflow"
|
||||
license = "MIT"
|
||||
|
||||
[dependencies]
|
||||
# 核心框架
|
||||
dioxus = { version = "0.5", features = ["desktop"] }
|
||||
dioxus-router = "0.5"
|
||||
tauri = { version = "2", optional = true }
|
||||
|
||||
# 异步运行时
|
||||
tokio = { version = "1", features = ["full"] }
|
||||
|
||||
# 文档处理
|
||||
pdfium-render = "0.8"
|
||||
epub = "2.0"
|
||||
mobi = "0.2"
|
||||
|
||||
# Markdown 与代码高亮
|
||||
pulldown-cmark = "0.9"
|
||||
syntect = "5.1"
|
||||
tree-sitter = { version = "0.20", optional = true }
|
||||
|
||||
# 数据存储
|
||||
sled = "0.34"
|
||||
serde = { version = "1.0", features = ["derive"] }
|
||||
serde_json = "1.0"
|
||||
|
||||
# 配置管理
|
||||
config = "0.14"
|
||||
anyhow = "1.0"
|
||||
tracing = "0.1"
|
||||
tracing-subscriber = "0.3"
|
||||
|
||||
# 工具
|
||||
rayon = "1.8" # 并行计算
|
||||
|
||||
[features]
|
||||
default = ["desktop"]
|
||||
desktop = ["dioxus/desktop"]
|
||||
tauri = ["dep:tauri"]
|
||||
wasm = ["dioxus/web"]
|
||||
|
||||
[profile.release]
|
||||
opt-level = 3
|
||||
lto = true
|
||||
codegen-units = 1
|
||||
Reference in New Issue
Block a user