{"id":25963716,"url":"https://github.com/doccaico/lexbor-zig","last_synced_at":"2025-08-20T17:13:14.915Z","repository":{"id":278108038,"uuid":"934514240","full_name":"doccaico/lexbor-zig","owner":"doccaico","description":"Zig build package and wrapper for Lexbor v2.4.0","archived":false,"fork":false,"pushed_at":"2025-02-26T02:07:31.000Z","size":2446,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-06T02:37:07.553Z","etag":null,"topics":["lexbor","zig"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/doccaico.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2025-02-18T00:49:49.000Z","updated_at":"2025-05-17T17:12:47.000Z","dependencies_parsed_at":"2025-02-18T03:37:23.494Z","dependency_job_id":null,"html_url":"https://github.com/doccaico/lexbor-zig","commit_stats":null,"previous_names":["doccaico/lexbor-zig-static2"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/doccaico/lexbor-zig","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doccaico%2Flexbor-zig","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doccaico%2Flexbor-zig/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doccaico%2Flexbor-zig/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doccaico%2Flexbor-zig/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/doccaico","download_url":"https://codeload.github.com/doccaico/lexbor-zig/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doccaico%2Flexbor-zig/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262145143,"owners_count":23265875,"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":["lexbor","zig"],"created_at":"2025-03-04T20:47:33.090Z","updated_at":"2025-07-03T11:04:32.727Z","avatar_url":"https://github.com/doccaico.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"### (WIP) lexbor-zig\nExperimental Zig build package and wrapper for [Lexbor](https://github.com/lexbor/lexbor/) v2.4.0  \nCurrently, it has only been tested on Windows.\n\n#### Fetch\n```\nzig fetch --save=lexbor https://github.com/doccaico/lexbor-zig/archive/\u003cgit-commit-hash\u003e.tar.gz\n```\n\n#### Using as a single static library (it included all modules)\n```zig\n// build.zig\n\n// const exe = b.addExecutable(.{\n// ...\nconst lexbor = b.dependency(\"lexbor\", .{\n    .target = target,\n    .optimize = optimize,\n});\n\nexe.root_module.addImport(\"lexbor\", lexbor.module(\"lexbor\"));\n\n// src/main.zig\n\nconst std = @import(\"std\");\n\nconst core = @import(\"lexbor\").core;\n\npub fn main() !void {\n    const array = core.array.create();\n    const status = core.array.init(array, 32);\n\n    try std.testing.expectEqual(status, .ok);\n\n    _ = core.array.destroy(array, true);\n}\n```\n\n#### Using individual modules (e.g. html module)\n```zig\n// build.zig\n\n// const exe = b.addExecutable(.{\n// ...\nconst lexbor = b.dependency(\"lexbor\", .{\n    .target = target,\n    .optimize = optimize,\n    .html = true,\n});\n\nexe.root_module.addImport(\"lexbor\", lexbor.module(\"lexbor\"));\n```\n\nSee more options: [build.zig](https://github.com/doccaico/lexbor-zig/blob/main/build.zig)\n\n#### How to build a static library (it included all modules)\n```\ngit clone https://github.com/doccaico/lexbor-zig\n\nzig build\n```\n\n#### How to build static libraries separately (e.g. html module)\n```\ngit clone https://github.com/doccaico/lexbor-zig\n\nzig build -Dhtml\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdoccaico%2Flexbor-zig","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdoccaico%2Flexbor-zig","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdoccaico%2Flexbor-zig/lists"}