Skip to content

iat 2.0.0

Latest

Choose a tag to compare

@Kaido-MSVC Kaido-MSVC released this 22 Nov 15:21

Verifying the Rust Rewrite / 驗證純 Rust 重寫版

English

iat 2.0.0 replaces the C++ 1.x implementation with Rust. Its image decoders are implemented using Rust crates rather than the C/C++ decoding libraries used by version 1.x.

1. Inspect the source code

git clone --branch v2.0.0 --depth 1 https://github.com/Kaido-MSVC/ImageAnalysisTool.git
cd ImageAnalysisTool

cargo metadata --locked --no-deps
cargo tree --locked

The Rust workspace contains five crates: iat-core, iat-cli, iat-gui, iat-worker, and iat-av1.

2. Build from source

Requires Rust 1.100 or newer, the MSVC build tools, and the Windows SDK.

cargo build --release --locked
cargo test --workspace --locked

The release build produces iat.exe, iat-gui.exe, and iat-worker.exe under target\release.

3. Inspect executable dependencies

Using a Visual Studio Developer PowerShell:

dumpbin /dependents target\release\iat.exe
dumpbin /dependents target\release\iat-gui.exe
dumpbin /dependents target\release\iat-worker.exe

These commands display dynamically linked DLL dependencies.

Verification scope: Cargo metadata and dependency-tree inspection help verify the Rust workspace structure. DLL inspection identifies dynamic dependencies but cannot exclude statically linked native code. A complete implementation audit also requires reviewing source code, transitive dependencies, build scripts, and native FFI usage.

The original C++ implementation remains available in the cpp-1.x branch.


繁體中文

iat 2.0.0 已將 C++ 1.x 的實作重寫為 Rust。影像解碼器採用 Rust crate,而非舊版使用的 C/C++ 解碼函式庫。

1. 檢查原始碼與相依套件

git clone --branch v2.0.0 --depth 1 https://github.com/Kaido-MSVC/ImageAnalysisTool.git
cd ImageAnalysisTool

cargo metadata --locked --no-deps
cargo tree --locked

Rust workspace 包含五個 crate:iat-core、iat-cli、iat-gui、iat-worker、iat-av1。

2. 從原始碼建置與測試

需要 Rust 1.100 以上版本、MSVC 建置工具及 Windows SDK。

cargo build --release --locked
cargo test --workspace --locked

成功建置後,可在 target\release 找到三個主要執行檔。

3. 檢查 EXE 的動態相依性

在 Visual Studio Developer PowerShell 執行:

dumpbin /dependents target\release\iat.exe
dumpbin /dependents target\release\iat-gui.exe
dumpbin /dependents target\release\iat-worker.exe

此指令可列出執行檔直接依賴的動態 DLL。

驗證範圍說明: Cargo 指令可檢查 Rust workspace 與套件相依結構;dumpbin 可檢查動態連結,但無法排除靜態連結的原生程式碼。若要完整審核實作,仍須檢查原始碼、遞迴相依套件、建置腳本與 FFI 使用情況。

舊版 C++ 1.x 的原始碼保留於 cpp-1.x 分支。