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!
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.
- 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.
- VC-LTL5: >= 5.1.1-Beta2
- YY-Thunks: >= 1.1.1-Beta1