{"id":15394914,"url":"https://github.com/kassane/llvm-zig","last_synced_at":"2026-02-17T03:05:31.114Z","repository":{"id":185675697,"uuid":"630989869","full_name":"kassane/llvm-zig","owner":"kassane","description":"LLVM bindings written in Zig","archived":false,"fork":false,"pushed_at":"2024-08-19T14:04:45.000Z","size":99,"stargazers_count":44,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-28T19:13:14.954Z","etag":null,"topics":["ffi-bindings","libclang","llvm","llvm-bindings","llvm-c","llvm-c-api","zig","zig-package"],"latest_commit_sha":null,"homepage":"","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/kassane.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-21T16:26:20.000Z","updated_at":"2025-03-08T06:42:33.000Z","dependencies_parsed_at":"2023-11-20T21:28:27.139Z","dependency_job_id":"d34be903-7fe9-47b8-aae8-35f65becee0c","html_url":"https://github.com/kassane/llvm-zig","commit_stats":{"total_commits":23,"total_committers":2,"mean_commits":11.5,"dds":0.3913043478260869,"last_synced_commit":"6ce7ef4efcd9ef07e0ad98c37378e8828a8eb5d8"},"previous_names":["kassane/llvm-kaleidoscope-zig"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kassane%2Fllvm-zig","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kassane%2Fllvm-zig/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kassane%2Fllvm-zig/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kassane%2Fllvm-zig/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kassane","download_url":"https://codeload.github.com/kassane/llvm-zig/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249057648,"owners_count":21205905,"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":["ffi-bindings","libclang","llvm","llvm-bindings","llvm-c","llvm-c-api","zig","zig-package"],"created_at":"2024-10-01T15:24:53.934Z","updated_at":"2026-02-17T03:05:31.100Z","avatar_url":"https://github.com/kassane.png","language":"Zig","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LLVM bindings for Zig\n\nThe purpose of this repository is to learn about the [`llvm`][llvm] compiler\ninfrastructure and practice some [`zig`][zig].\n\n### Requirement\n\n- [zig v0.14.0](https://ziglang.org/download) or higher.\n\n\n### How to use\n\nMake your project using\n```console\nzig init\n```\nAdd this llvm-zig module\nin `build.zig.zon`:\n```console\nzig fetch --save=llvm git+https://github.com/kassane/llvm-zig\n```\nin `build.zig`:\n\n```zig\n// [...]\n    const llvm_dep = b.dependency(\"llvm\", .{ // \u003c== as declared in build.zig.zon\n        .target = target, // the same as passing `-Dtarget=\u003c...\u003e` to the library's build.zig script\n        .optimize = optimize, // ditto for `-Doptimize=\u003c...\u003e`\n    });\n    const llvm_mod = llvm_dep.module(\"llvm\"); // \u003c== get llvm bindings module\n    // and/or\n    const clang_mod = llvm_dep.module(\"clang\"); // \u003c== get clang bindings module\n    /// your executable config\n    exe.root_module.addImport(\"llvm\", llvm_mod); // \u003c== add llvm module\n    exe.root_module.addImport(\"clang\", clang_mod); // \u003c== add clang module\n// [...]\n```\n\n### License\n\nThis project is licensed under the [MIT](LICENSE) license.\n\n\n[llvm]: https://llvm.org\n[zig]: https://ziglang.org\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkassane%2Fllvm-zig","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkassane%2Fllvm-zig","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkassane%2Fllvm-zig/lists"}