{"id":13412494,"url":"https://github.com/ziglang/zig","last_synced_at":"2025-05-12T22:33:45.006Z","repository":{"id":37255724,"uuid":"40276274","full_name":"ziglang/zig","owner":"ziglang","description":"General-purpose programming language and toolchain for maintaining robust, optimal, and reusable software.","archived":false,"fork":false,"pushed_at":"2025-05-05T13:31:00.000Z","size":329244,"stargazers_count":38842,"open_issues_count":3476,"forks_count":2819,"subscribers_count":383,"default_branch":"master","last_synced_at":"2025-05-05T17:21:21.619Z","etag":null,"topics":["compiler","language","zig"],"latest_commit_sha":null,"homepage":"https://ziglang.org","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/ziglang.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":".github/CODE_OF_CONDUCT.md","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},"funding":{"github":["ziglang"]}},"created_at":"2015-08-06T00:51:28.000Z","updated_at":"2025-05-05T16:49:00.000Z","dependencies_parsed_at":"2023-10-21T00:01:11.428Z","dependency_job_id":"347b86f7-c4e9-4854-95cc-c85e611feefe","html_url":"https://github.com/ziglang/zig","commit_stats":{"total_commits":27867,"total_committers":1099,"mean_commits":"25.356687898089174","dds":0.6476836401478452,"last_synced_commit":"d83a3f1746c81026d1cf0244156513c9b5a2a9f6"},"previous_names":["andrewrk/zig"],"tags_count":20,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ziglang%2Fzig","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ziglang%2Fzig/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ziglang%2Fzig/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ziglang%2Fzig/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ziglang","download_url":"https://codeload.github.com/ziglang/zig/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253135894,"owners_count":21859706,"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","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":["compiler","language","zig"],"created_at":"2024-07-30T20:01:25.328Z","updated_at":"2025-05-12T22:33:39.982Z","avatar_url":"https://github.com/ziglang.png","language":"Zig","readme":"![ZIG](https://ziglang.org/img/zig-logo-dynamic.svg)\n\nA general-purpose programming language and toolchain for maintaining\n**robust**, **optimal**, and **reusable** software.\n\nhttps://ziglang.org/\n\n## Documentation\n\nIf you are looking at this README file in a source tree, please refer to the\n**Release Notes**, **Language Reference**, or **Standard Library\nDocumentation** corresponding to the version of Zig that you are using by\nfollowing the appropriate link on the\n[download page](https://ziglang.org/download).\n\nOtherwise, you're looking at a release of Zig, so you can find the language\nreference at `doc/langref.html`, and the standard library documentation by\nrunning `zig std`, which will open a browser tab.\n\n## Installation\n\n * [download a pre-built binary](https://ziglang.org/download/)\n * [install from a package manager](https://github.com/ziglang/zig/wiki/Install-Zig-from-a-Package-Manager)\n * [bootstrap zig for any target](https://github.com/ziglang/zig-bootstrap)\n\nA Zig installation is composed of two things:\n\n1. The Zig executable\n2. The lib/ directory\n\nAt runtime, the executable searches up the file system for the lib/ directory,\nrelative to itself:\n\n* lib/\n* lib/zig/\n* ../lib/\n* ../lib/zig/\n* (and so on)\n\nIn other words, you can **unpack a release of Zig anywhere**, and then begin\nusing it immediately. There is no need to install it globally, although this\nmechanism supports that use case too (i.e. `/usr/bin/zig` and `/usr/lib/zig/`).\n\n## Building from Source\n\nEnsure you have the required dependencies:\n\n * CMake \u003e= 3.15\n * System C/C++ Toolchain\n * LLVM, Clang, LLD development libraries == 19.x\n\nThen it is the standard CMake build process:\n\n```\nmkdir build\ncd build\ncmake ..\nmake install\n```\n\nFor more options, tips, and troubleshooting, please see the\n[Building Zig From Source](https://github.com/ziglang/zig/wiki/Building-Zig-From-Source)\npage on the wiki.\n\n## Building from Source without LLVM\n\nIn this case, the only system dependency is a C compiler.\n\n```\ncc -o bootstrap bootstrap.c\n./bootstrap\n```\n\nThis produces a `zig2` executable in the current working directory. This is a\n\"stage2\" build of the compiler,\n[without LLVM extensions](https://github.com/ziglang/zig/issues/16270), and is\ntherefore lacking these features:\n- Release mode optimizations\n- [aarch64 machine code backend](https://github.com/ziglang/zig/issues/21172)\n- [@cImport](https://github.com/ziglang/zig/issues/20630)\n- [zig translate-c](https://github.com/ziglang/zig/issues/20875)\n- [Ability to compile assembly files](https://github.com/ziglang/zig/issues/21169)\n- [Some ELF linking features](https://github.com/ziglang/zig/issues/17749)\n- [Most COFF/PE linking features](https://github.com/ziglang/zig/issues/17751)\n- [Some WebAssembly linking features](https://github.com/ziglang/zig/issues/17750)\n- [Ability to create import libs from def files](https://github.com/ziglang/zig/issues/17807)\n- [Ability to create static archives from object files](https://github.com/ziglang/zig/issues/9828)\n- Ability to compile C, C++, Objective-C, and Objective-C++ files\n\nHowever, a compiler built this way does provide a C backend, which may be\nuseful for creating system packages of Zig projects using the system C\ntoolchain. **In this case, LLVM is not needed!**\n\nFurthermore, a compiler built this way provides an LLVM backend that produces\nbitcode files, which may be compiled into object files via a system Clang\npackage. This can be used to produce system packages of Zig applications\nwithout the Zig package dependency on LLVM.\n\n## Contributing\n\n[Donate monthly](https://ziglang.org/zsf/).\n\nZig is Free and Open Source Software. We welcome bug reports and patches from\neveryone. However, keep in mind that Zig governance is BDFN (Benevolent\nDictator For Now) which means that Andrew Kelley has final say on the design\nand implementation of everything.\n\nOne of the best ways you can contribute to Zig is to start using it for an\nopen-source personal project.\n\nThis leads to discovering bugs and helps flesh out use cases, which lead to\nfurther design iterations of Zig. Importantly, each issue found this way comes\nwith real world motivations, making it straightforward to explain the reasoning\nbehind proposals and feature requests.\n\nYou will be taken much more seriously on the issue tracker if you have a\npersonal project that uses Zig.\n\nThe issue label\n[Contributor Friendly](https://github.com/ziglang/zig/issues?q=is%3Aissue+is%3Aopen+label%3A%22contributor+friendly%22)\nexists to help you find issues that are **limited in scope and/or knowledge of\nZig internals.**\n\nPlease note that issues labeled\n[Proposal](https://github.com/ziglang/zig/issues?q=is%3Aissue+is%3Aopen+label%3Aproposal)\nbut do not also have the\n[Accepted](https://github.com/ziglang/zig/issues?q=is%3Aissue+is%3Aopen+label%3Aaccepted)\nlabel are still under consideration, and efforts to implement such a proposal\nhave a high risk of being wasted. If you are interested in a proposal which is\nstill under consideration, please express your interest in the issue tracker,\nproviding extra insights and considerations that others have not yet expressed.\nThe most highly regarded argument in such a discussion is a real world use case.\n\nFor more tips, please see the\n[Contributing](https://github.com/ziglang/zig/wiki/Contributing) page on the\nwiki.\n\n## Community\n\nThe Zig community is decentralized. Anyone is free to start and maintain their\nown space for Zig users to gather. There is no concept of \"official\" or\n\"unofficial\". Each gathering place has its own moderators and rules. Users are\nencouraged to be aware of the social structures of the spaces they inhabit, and\nwork purposefully to facilitate spaces that align with their values.\n\nPlease see the [Community](https://github.com/ziglang/zig/wiki/Community) wiki\npage for a public listing of social spaces.\n","funding_links":["https://github.com/sponsors/ziglang"],"categories":["Zig","Official Resources","计算机编程 数据结构与算法","Uncategorized","Repos","compiler","zig","语言资源库"],"sub_categories":["网络服务_其他","Uncategorized","zig"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fziglang%2Fzig","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fziglang%2Fzig","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fziglang%2Fzig/lists"}