feat: 目录结构迁移优化

- 将 MirrorRegistry MirrorTarget 迁移到 model.rs
- TargetConfig 独立实现 FromLua,解耦反序列化与业务校验
- mirror—shim 新增 command.rs 并将 to_command 移动到 command.rs
- 其他优化
This commit is contained in:
2026-09-12 10:45:39 +08:00
parent 0bba69fd51
commit 53579f9c65
24 changed files with 1472 additions and 972 deletions
+2
View File
@@ -11,6 +11,8 @@ path = "src/main.rs"
[dependencies]
mirror-core = { path = "../mirror-core" }
clap = { version = "4.6.6", features = ["cargo", "color", "derive","string"] }
inquire="0.9.4"
tempfile="3.27.0"# 用于安全原子写入
mlua = { workspace = true }
anyhow = { workspace = true }
tracing = { workspace = true }