- 新增 Lua 动态配置 tools 目录并返回完整路径 - 将 `resolve_args` 和 `to_command` 改为接受泛型 `IntoIterator`,解耦参数来源 - 统一使用 `chain` 零拷贝合并预设参数与运行时参数,消除多余堆分配 - 提权回退分支改为直接复用 `cmd.get_args()`,修复提权时 `mr:` 别名未展开的缺陷 - 规范参数与变量命名,完善代码注释
38 lines
800 B
TOML
38 lines
800 B
TOML
[package]
|
|
name = "mirror"
|
|
version = "0.1.0"
|
|
edition = "2024"
|
|
rust-version = "1.94"
|
|
license = "MIT OR Unlicense"
|
|
description = "A fast, safe Rust shim launcher for Scoop"
|
|
|
|
[profile.release]
|
|
opt-level = "z"
|
|
panic = "abort"
|
|
|
|
[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"
|
|
tinyjson="2.5.1"
|
|
|
|
|
|
[features]
|
|
default = ["args"]
|
|
args=[] |