thunk-rs

Crates.iothunk-rs
lib.rsthunk-rs
version0.3.2
sourcesrc
created_at2024-05-16 14:55:20.784124
updated_at2024-06-11 16:01:09.170502
descriptionThunk the Rust program to support Windows XP, Vista and more!
homepage
repositoryhttps://github.com/felixmaker/thunk
max_upload_size
id1242133
size9,029
(felixmaker)

documentation

https://docs.rs/thunk-rs

README

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
Commit count: 43

cargo fmt