{"id":30999275,"url":"https://github.com/felixmaker/thunk","last_synced_at":"2025-09-12T23:09:49.831Z","repository":{"id":176334649,"uuid":"630246814","full_name":"felixmaker/thunk","owner":"felixmaker","description":"Build Rust program to support Windows XP, Vista and more","archived":false,"fork":false,"pushed_at":"2025-07-29T14:58:19.000Z","size":52,"stargazers_count":79,"open_issues_count":14,"forks_count":17,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-08-22T06:18:43.929Z","etag":null,"topics":["rust-lang","windows"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/felixmaker.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-04-20T01:25:12.000Z","updated_at":"2025-08-11T09:41:58.000Z","dependencies_parsed_at":null,"dependency_job_id":"59f18ce4-e5a4-43c2-8d7b-e80e955f07e6","html_url":"https://github.com/felixmaker/thunk","commit_stats":null,"previous_names":["felixmaker/thunk"],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/felixmaker/thunk","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/felixmaker%2Fthunk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/felixmaker%2Fthunk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/felixmaker%2Fthunk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/felixmaker%2Fthunk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/felixmaker","download_url":"https://codeload.github.com/felixmaker/thunk/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/felixmaker%2Fthunk/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274892540,"owners_count":25369271,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-12T02:00:09.324Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["rust-lang","windows"],"created_at":"2025-09-12T23:02:18.874Z","updated_at":"2025-09-12T23:09:49.824Z","avatar_url":"https://github.com/felixmaker.png","language":"Rust","funding_links":[],"categories":["Rust"],"sub_categories":[],"readme":"# Use Thunk to build your Rust program to support old Windows platforms\n\n[中文自述文件](./readme-chinese.md)\n\nThunk uses [VC-LTL5](https://github.com/Chuyu-Team/VC-LTL5) and [YY-Thunks](https://github.com/Chuyu-Team/YY-Thunks) to build programs that support even Windows XP. So, how does it work?\n\n - Add VC-LTL to the library search path\n - Use YY-Thunks to remedy API that old platform that does not exist\n\nNote: Thunk does not guarantee the compiled program work or work accurately on old platforms. **USE AT YOUR OWN RISK**!\n\n## Usage (As Command line tool)\n\n## Preparation\n\nDownload VC-LTL5 and YY-Thunks Binary, unzip them and add environment variable:\n\n| Binary | Environment Variable |\n| --- | ---|\n| VC-LTL-XXX-Binary.7z | VC_LTL |\n| YY-Thunks-XXX-Binary.zip | YY_THUNKS |\n\nThen add Thunk to run path. \n\n\n## Install Thunk\n\n```\ncargo install thunk-cli\n```\n\n## Sample 1. Build for Windows XP\n\n```\ncargo new build_for_xp\ncd build_for_xp\nthunk --os xp --arch x86 -- --release\n```\n\n## Sample 2. Build a shared library for Windows XP\n\n```\ncargo new build_for_xp\ncd build_for_xp\nthunk --os xp --arch x86 --lib -- --release\n```\n\n## Show help\n\nUse the following command to show help:\n\n```\nthunk.exe --help\n```\n\nNote: In order to distinguish the program build by Thunk, Thunk builds the release in `./target/*_build`.\n\n# Usage (As Library)\n\nStep1: Ensure command line tools `curl` and `7z` could be found in `PATH`. (Needed if `VC_LTL` and `YY_THUNKS` not found in environment variables)\n\nStep2: Add thunk as a build dependency:\n\n```\ncargo add thunk-rs --build\n```\n\nStep3: Create a build script `build.rs`:\n\n```\nfn main() {\n    thunk::thunk();\n}\n```\n\nThen, your program should run on Windows XP. See [thunk-rs](./thunk-rs/README.md).\n\n# Todo list\n\n - [x] Windows XP x86\n - [x] Windows XP x64\n - [x] Windows Vista x86\n - [x] Windows Vista x64\n - [x] Windows 7 x86 (v0.3.2)\n - [x] Windows 7 x64 (v0.3.2)\n - [x] Windows 8 x86 (v0.3.2)\n - [x] Windows 8 x64 (v0.3.2)\n - [x] Windows 10 x86 (v0.3.2)\n - [x] Windows 10 x64 (v0.3.2)\n - [x] Only VC-LTL\n - [ ] Scoop bucket\n\n\n# Thanks\n \n - [VC-LTL5](https://github.com/Chuyu-Team/VC-LTL5)\n - [YY-Thunks](https://github.com/Chuyu-Team/YY-Thunks)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffelixmaker%2Fthunk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffelixmaker%2Fthunk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffelixmaker%2Fthunk/lists"}