- 使用 `OsString`/`PathBuf` 替代 `String`,实现跨平台无损编码与命令行参数透传 - 完善 `FromLua` 转换与边界校验,拦截空洞 (`nil`) 及非整数键 - 修复环境变量拼接时由于内置分隔符导致的 `join_paths` 报错 - 优化 Windows 下 UAC 提权执行逻辑,改用宽字符 API (`ShellExecuteExW`)
33 lines
729 B
TOML
33 lines
729 B
TOML
[package]
|
|
name = "rshim"
|
|
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]
|
|
thiserror = "2.0.20"
|
|
|
|
mlua = { version = "0.12.0", features = ["lua54", "vendored"] }
|
|
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",
|
|
] }
|
|
dunce = "1.0.5"
|
|
|
|
# 日志
|
|
tracing = "0.1.44"
|
|
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
|
|
tracing-appender = "0.2"
|
|
encoding_rs = "0.8.35"
|