3 releases

0.2.8 Jul 31, 2024
0.2.7 Jul 31, 2024

#218 in GUI

Custom license

185KB
2K SLoC

Contains (DOS exe, 79KB) dist/windows/devcon.exe

# 例子
cargo run -- --help
# 打包包含所有 API
cargo build --release --features os,drive,clean
# 运行测试OS
cargo run --features os -- --api Os  --task check
# 打包包含OS API
cargo build --release --features os
# 运行测试Clean清理
cargo run --features clean -- --api Clean  --task empty_recycle_bin
# 打包包含Clean API
cargo build --release --features clean
# https://learn.microsoft.com/zh-cn/windows-hardware/drivers/devtest/devcon-examples
# 运行测试卸载网卡设备, 并重启生效;
cargo run -- --init --api Drive --full --task remove --args /reboot --filter "Intel(R) Ethernet Controller (3) I225-V #4" -- =net
# 运行测试查找网卡驱动信息, 并返回R<Array[JSON格式]>R
cargo run -- --init --api Drive --full --task findnodes --filter "Intel(R) Ethernet Controller (3) I225-V #4" -- =net
# 打包包含OS API
cargo build --release --features drive

lib.rs:

Rust

 fn main() -> e_utils::Result<()> {
   if e_app::input::Opts::check_empty() {
     let _ = app::MyApp::launch()?;
   } else {
     let opts = e_app::input::Opts::new(None as Option<Vec<String>>)?;
     let res = e_app::input::api(opts)?;
     println!("{}", res.to_str()?);
   }
   Ok(())
 }

Dependencies

~6–46MB
~675K SLoC