- 配置文件解析引擎由 shim 替换为 mlua (Lua 5.4) - 优化路由策略:统一以根目录 shims.lua 为入口,支持 tools/ 目录模块化降级探测 - 自动注入 __SHIM_DIR__ 绝对路径与 package.path 模块搜索路径 - 环境变量改用 Command::envs 安全注入,并在 UAC 提权时透传
32 lines
611 B
TOML
32 lines
611 B
TOML
[package]
|
|
name = "rshim"
|
|
version = "0.1.0"
|
|
authors = ["anonymous <anonymous@example.com>"]
|
|
edition = "2024"
|
|
|
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
|
|
|
|
|
[profile.release]
|
|
opt-level = "z"
|
|
panic = "abort"
|
|
[dependencies]
|
|
fs-err = "3.3.1"
|
|
unicode-bom = "2.0.3"
|
|
mlua = { version = "0.12.0", features = ["lua54", "vendored"] }
|
|
winapi = { version = "0.3", features = [
|
|
"wincon",
|
|
"consoleapi",
|
|
"minwindef",
|
|
"shellapi",
|
|
"winuser",
|
|
"synchapi",
|
|
"combaseapi",
|
|
"winbase",
|
|
"processthreadsapi",
|
|
"objbase",
|
|
"impl-default"
|
|
] }
|
|
|
|
|