{"id":18753260,"url":"https://github.com/hanxi/zig-build-lua","last_synced_at":"2025-10-12T20:50:43.488Z","repository":{"id":215885622,"uuid":"739971017","full_name":"hanxi/zig-build-lua","owner":"hanxi","description":"使用zig编译lua，可交叉编译。","archived":false,"fork":false,"pushed_at":"2025-02-26T09:52:36.000Z","size":8,"stargazers_count":16,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-13T00:53:09.230Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Zig","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/hanxi.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,"zenodo":null}},"created_at":"2024-01-07T05:25:22.000Z","updated_at":"2025-04-09T10:28:27.000Z","dependencies_parsed_at":null,"dependency_job_id":"5bf2ebb6-8995-433e-a069-d4ea601160d3","html_url":"https://github.com/hanxi/zig-build-lua","commit_stats":null,"previous_names":["hanxi/zig-build-lua"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hanxi/zig-build-lua","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hanxi%2Fzig-build-lua","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hanxi%2Fzig-build-lua/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hanxi%2Fzig-build-lua/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hanxi%2Fzig-build-lua/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hanxi","download_url":"https://codeload.github.com/hanxi/zig-build-lua/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hanxi%2Fzig-build-lua/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279012807,"owners_count":26085191,"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-10-12T02:00:06.719Z","response_time":53,"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":[],"created_at":"2024-11-07T17:25:01.825Z","updated_at":"2025-10-12T20:50:43.473Z","avatar_url":"https://github.com/hanxi.png","language":"Zig","funding_links":[],"categories":[],"sub_categories":[],"readme":"# use zig to compile lua\n\nEasily cross-compile lua executable files for different platforms, without the need for mingw, gcc and other tools.\n\n## Compile\n\n```bash\nzig build\n```\n\nThis whill cross-compile all support platform. Output files are in the zig-out directory.\n\n```\n[4.0K]  zig-out/\n├── [4.0K]  aarch64-linux\n│   └── [3.0M]  lua\n├── [4.0K]  aarch64-macos\n│   └── [418K]  lua         \n├── [4.0K]  x86_64-linux-gnu\n│   └── [1.8M]  lua\n├── [4.0K]  x86_64-linux-musl\n│   └── [2.3M]  lua\n└── [4.0K]  x86_64-windows\n    ├── [572K]  lua.exe\n    └── [1.6M]  lua.pdb\n```\n\n## References\n  \n- [zig](https://ziglang.org/)\n- [lua](https://www.lua.org/)\n\n# 使用 zig 编译 lua\n\n方面跨平台交叉编译出 lua 可执行文件，无需 mingw,gcc 等工具。\n\n## 编译\n\n```bash\nzig build\n```\n\n\n交叉编译，可以一次性编译出所有平台的 Lua 可执行文件。输出文件在 zig-out 目录。\n\n```\n[4.0K]  zig-out/\n├── [4.0K]  aarch64-linux\n│   └── [3.0M]  lua\n├── [4.0K]  aarch64-macos\n│   └── [418K]  lua         \n├── [4.0K]  x86_64-linux-gnu\n│   └── [1.8M]  lua\n├── [4.0K]  x86_64-linux-musl\n│   └── [2.3M]  lua\n└── [4.0K]  x86_64-windows\n    ├── [572K]  lua.exe\n    └── [1.6M]  lua.pdb\n```\n\n\n## 参考\n\n- [zig](https://ziglang.org/)\n- [lua](https://www.lua.org/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhanxi%2Fzig-build-lua","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhanxi%2Fzig-build-lua","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhanxi%2Fzig-build-lua/lists"}