- 调整 LogLevel 的 FromStr 错误类型为 String,适配 clap 的 value_parser - log 子命令直接绑定 LogLevel 枚举,消除硬编码校验与类型转换 - 规范化日志级别更新与配置读取逻辑 - handler 类型有 Function 改为 String
24 lines
418 B
TOML
24 lines
418 B
TOML
[package]
|
|
name = "mirror-shim"
|
|
version = { workspace = true }
|
|
edition = { workspace = true }
|
|
|
|
[dependencies]
|
|
mirror-core = { path = "../mirror-core" }
|
|
|
|
anyhow = { workspace = true }
|
|
|
|
windows-sys = { workspace = true }
|
|
tracing = { workspace = true }
|
|
tracing-subscriber = { workspace = true }
|
|
tracing-appender = { workspace = true }
|
|
|
|
[features]
|
|
default = []
|
|
args = []
|
|
|
|
|
|
|
|
[profile.release]
|
|
opt-level = "z"
|
|
panic = "abort" |