refactor: 拆分代码结构为 lib.rs 与多模块架构

- 将核心业务逻辑抽离至 lib.rs,精简 main.rs 为纯粹的 CLI 入口
- 将代码按职责拆分为 config、env、runtime、shim 等子模块
- 提高可测试性与代码复用度
This commit is contained in:
2026-08-14 10:36:09 +08:00
parent e52ba67d7e
commit ed5439eaa1
8 changed files with 305 additions and 288 deletions

View File

@@ -6,10 +6,8 @@ use std::{
process::{Command, exit},
ptr::null_mut,
};
mod shims;
mod error;
use shims::Shim;
use rshim::Shim;
use winapi::{
shared::minwindef::{BOOL, DWORD, FALSE, TRUE},