{"id":19863252,"url":"https://github.com/allyourcodebase/boost-libraries-zig","last_synced_at":"2026-01-23T20:07:49.082Z","repository":{"id":255481325,"uuid":"850007967","full_name":"allyourcodebase/boost-libraries-zig","owner":"allyourcodebase","description":"Boost Libraries using build.zig","archived":false,"fork":false,"pushed_at":"2025-09-30T13:55:59.000Z","size":80,"stargazers_count":20,"open_issues_count":0,"forks_count":3,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-20T00:22:05.838Z","etag":null,"topics":["boost-libraries","cpp","cpp-libraries","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":"bsl-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/allyourcodebase.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING","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-08-30T17:29:41.000Z","updated_at":"2025-09-30T13:56:03.000Z","dependencies_parsed_at":"2024-09-05T17:49:17.464Z","dependency_job_id":"f370bbef-5b1b-4319-84e8-86cf05ae9d8f","html_url":"https://github.com/allyourcodebase/boost-libraries-zig","commit_stats":null,"previous_names":["allyourcodebase/boost-libraries-zig"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/allyourcodebase/boost-libraries-zig","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/allyourcodebase%2Fboost-libraries-zig","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/allyourcodebase%2Fboost-libraries-zig/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/allyourcodebase%2Fboost-libraries-zig/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/allyourcodebase%2Fboost-libraries-zig/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/allyourcodebase","download_url":"https://codeload.github.com/allyourcodebase/boost-libraries-zig/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/allyourcodebase%2Fboost-libraries-zig/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28699372,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-23T17:25:48.045Z","status":"ssl_error","status_checked_at":"2026-01-23T17:25:47.153Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["boost-libraries","cpp","cpp-libraries","zig-package"],"created_at":"2024-11-12T15:14:08.243Z","updated_at":"2026-01-23T20:07:49.068Z","avatar_url":"https://github.com/allyourcodebase.png","language":"Zig","readme":"# Boost Libraries using Zig build-system\n\n[Boost Libraries](https://boost.io) using `build.zig`.\n\nReplacing the [CMake](https://cmake.org/) and [B2](https://www.bfgroup.xyz/b2/) build system.\n\n\n\u003e [!IMPORTANT]\n\u003e For C++ projects, `zig c++` uses LLVM's libunwind + libc++ (statically linked) by default.\n\u003e This applies to all targets except MSVC, which uses `-nostdlib++` instead.\n\n\n### Requirements\n\n- [zig](https://ziglang.org/download) v0.16.0 or master\n\n## How to use\n\nBuild libraries\n\n```bash\n# Build no-header-only libraries\n$ zig build -Doptimize=\u003cDebug|ReleaseSafe|ReleaseFast|ReleaseSmall\u003e \\\n    -Dtarget=\u003ctriple-target\u003e \\\n    --summary \u003call|new\u003e \\\n    -Dcontext \\\n    -Djson \\\n    -Dsystem \\\n    -Dcontainer \\\n    -Dcobalt \\\n    -Dfilesystem\n```\n\n#### Helper\n\n```bash\nProject-Specific Options:\n  -Dtarget=[string]            The CPU architecture, OS, and ABI to build for\n  -Dcpu=[string]               Target CPU features to add or subtract\n  -Ddynamic-linker=[string]    Path to interpreter on the target system\n  -Doptimize=[enum]            Prioritize performance, safety, or binary size\n                                 Supported Values:\n                                   Debug\n                                   ReleaseSafe\n                                   ReleaseFast\n                                   ReleaseSmall\n  -Datomic=[bool]              Build boost.atomic library (default: false)\n  -Dcharconv=[bool]            Build boost.charconv library (default: false)\n  -Dcobalt=[bool]              Build boost.cobalt library (default: false)\n  -Dcontainer=[bool]           Build boost.container library (default: false)\n  -Dcontext=[bool]             Build boost.context library (default: false)\n  -Dexception=[bool]           Build boost.exception library (default: false)\n  -Dfiber=[bool]               Build boost.fiber library (default: false)\n  -Dfilesystem=[bool]          Build boost.filesystem library (default: false)\n  -Diostreams=[bool]           Build boost.iostreams library (default: false)\n  -Djson=[bool]                Build boost.json library (default: false)\n  -Dlog=[bool]                 Build boost.log library (default: false)\n  -Dnowide=[bool]              Build boost.nowide library (default: false)\n  -Dprocess=[bool]             Build boost.process library (default: false)\n  -Dpython=[bool]              Build boost.python library (default: false)\n  -Drandom=[bool]              Build boost.random library (default: false)\n  -Dregex=[bool]               Build boost.regex library (default: false)\n  -Dserialization=[bool]       Build boost.serialization library (default: false)\n  -Dstacktrace=[bool]          Build boost.stacktrace library (default: false)\n  -Dsystem=[bool]              Build boost.system library (default: false)\n  -Durl=[bool]                 Build boost.url library (default: false)\n  -Dwave=[bool]                Build boost.wave library (default: false)\n  -Dshared=[bool]              Build as shared library (default: false)\n```\n\n\n### or use in new zig project\n\nMake directory and init\n\n```bash\n$ zig init\n## add in 'build.zig.zon' boost-libraries-zig package\n$ zig fetch --save=boost git+https://github.com/allyourcodebase/boost-libraries-zig\n```\nAdd in **build.zig**\n```zig\nconst std = @import(\"std\");\npub fn build(b: *std.Build) !void {\n    const target = b.standardTargetOptions(.{});\n    const optimize = b.standardOptimizeOption(.{});\n\n    const boost_dep = b.dependency(\"boost\", .{\n        .target = target,\n        .optimize = optimize,\n    });\n    const boost_artifact = boost_dep.artifact(\"boost\");\n\n    for(boost_artifact.root_module.include_dirs.items) |include_dir| {\n        try exe.root_module.include_dirs.append(b.allocator, include_dir);\n    }\n    // if not header-only, link library\n    exe.linkLibrary(boost_artifact);\n}\n```\n\n## How update zon dependencies\n\nOpen [`update_zon.zig`](update_zon.zig) and change `const boost_version = \"boost-version-tagged\";` or add/sub url in `git_urls` list.\n\n```bash\nzig run -fsingle-threaded update_zon.zig\n```\n\n## License\n\nsee: [LICENSE](LICENSE)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fallyourcodebase%2Fboost-libraries-zig","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fallyourcodebase%2Fboost-libraries-zig","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fallyourcodebase%2Fboost-libraries-zig/lists"}