#build-dependencies #thunk #platform #windows #thunk-cli

build thunk-cli

Thunk the Rust program to support Windows XP, Vista and more!

1 unstable release

0.3.3 Apr 19, 2025
0.3.2 Apr 19, 2025

#324 in Build Utils

Download history 263/week @ 2025-04-15 21/week @ 2025-04-22 19/week @ 2025-04-29 14/week @ 2025-05-06

317 downloads per month

Apache-2.0 OR MIT

18KB
381 lines

Thunk-cli

Thunk the Rust program to support old Windows platforms!

Preparation

Download VC-LTL5 and YY-Thunks Binary, unzip them and add environment variable:

Binary Environment Variable
VC-LTL-XXX-Binary.7z VC_LTL
YY-Thunks-XXX-Binary.zip YY_THUNKS

Then add Thunk to run path.

Install Thunk

cargo install thunk-cli

Sample 1. Build for Windows XP

cargo new build_for_xp
cd build_for_xp
thunk --os xp --arch x86 -- --release

Sample 2. Build a shared library for Windows XP

cargo new build_for_xp
cd build_for_xp
thunk --os xp --arch x86 --lib -- --release

Show help

Use the following command to show help:

thunk.exe --help

Note: In order to distinguish the program build by Thunk, Thunk builds the release in ./target/*_build.

Dependencies

~1.2–1.8MB
~32K SLoC