Crates.io | thunk-rs |
lib.rs | thunk-rs |
version | 0.3.2 |
source | src |
created_at | 2024-05-16 14:55:20.784124 |
updated_at | 2024-06-11 16:01:09.170502 |
description | Thunk the Rust program to support Windows XP, Vista and more! |
homepage | |
repository | https://github.com/felixmaker/thunk |
max_upload_size | |
id | 1242133 |
size | 9,029 |
Thunk uses VC-LTL5 and YY-Thunks to build program that supports even Windows XP. So, how does it work?
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.