4 releases
0.3.2 | Jun 11, 2024 |
---|---|
0.3.1 | May 26, 2024 |
0.3.0 | May 19, 2024 |
0.1.0 | May 16, 2024 |
#201 in Build Utils
10KB
152 lines
thunk: Thunk the Rust program to support old Windows platforms!
How does it work?
Thunk uses VC-LTL5 and YY-Thunks to build program that supports even Windows XP. So, how does it work?
- Add VC-LTL to the library search path
- Use YY-Thunks to remedy API that old platform that does not exist
Note: Thunk does not guarantee the compiled program work or work accurately on old platforms. USE AT YOUR OWN RISK!
Usage
Step1: Ensure command line tools curl
and 7z
could be found in PATH
. (Needed if VC_LTL
and YY_THUNKS
not found in environment variables)
Step2: Add thunk as a build dependency:
cargo add thunk-rs --build
Step3: Create a build script build.rs:
fn main() {
thunk::thunk();
}
Then, your program should run on Windows XP.
Feature
- xp: Enables VC-LTL5 and YY-Thunks to support Windows XP (default)
- vista: Enables VC-LTL5 and YY-Thunks to support Windows Vista
- win7: Enables VC-LTL5 and YY-Thunks to support Windows 7
- win8: Enables VC-LTL5 and YY-Thunks to support Windows 8
- win10: Enables VC-LTL5 and YY-Thunks to support Windows 10
- vc_ltl_only: Enables VC-LTL5 to make the final executable run without VC runtime installed.
- lib: Enables this when compiling a library.
- subsystem_windows: Enables this when you want to hide console.
Test Status
- VC-LTL5: >= 5.1.1-Beta2
- YY-Thunks: >= 1.1.1-Beta1