- 调整 LogLevel 的 FromStr 错误类型为 String,适配 clap 的 value_parser - log 子命令直接绑定 LogLevel 枚举,消除硬编码校验与类型转换 - 规范化日志级别更新与配置读取逻辑 - handler 类型有 Function 改为 String
43 lines
921 B
TOML
43 lines
921 B
TOML
[workspace]
|
|
resolver = "2"
|
|
members = [
|
|
"mirror-core", "mirror-cli",
|
|
"mirror-shim",
|
|
]
|
|
|
|
#[package]
|
|
#name = "mirror"
|
|
|
|
[workspace.package]
|
|
version = "0.1.0"
|
|
edition = "2024"
|
|
rust-version = "1.94"
|
|
license = "MIT OR Unlicense"
|
|
description = "A fast, safe Rust shim launcher for Scoop"
|
|
|
|
[workspace.dependencies]
|
|
anyhow = "1.0.104"
|
|
|
|
mlua = { version = "0.12.0", features = ["lua54", "vendored","send"] }
|
|
windows-sys = { version = "0.61.2", features = [
|
|
"Win32_Foundation",
|
|
"Win32_System_Com",
|
|
"Win32_System_Console",
|
|
"Win32_System_Registry",
|
|
"Win32_System_Threading",
|
|
"Win32_UI_Shell",
|
|
"Win32_UI_WindowsAndMessaging",
|
|
"Win32_Globalization"
|
|
] }
|
|
dunce = "1.0.5"
|
|
|
|
# 日志
|
|
tracing = "0.1.44"
|
|
tracing-subscriber = { version = "0.3", features = ["env-filter","fmt"] }
|
|
tracing-appender = "0.2"
|
|
serde = { version = "1.0.229", features = ["derive"] }
|
|
tinyjson="2.5.1"
|
|
#toml = "1.1.4+spec-1.1.0"
|
|
|
|
|