{"id":13711357,"url":"https://github.com/kassane/asio","last_synced_at":"2025-05-06T20:32:48.384Z","repository":{"id":132612267,"uuid":"608320496","full_name":"kassane/asio","owner":"kassane","description":"Asio C++ Library (uses zig build-system)","archived":false,"fork":true,"pushed_at":"2024-08-18T16:39:13.000Z","size":25997,"stargazers_count":6,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"zig-pkg","last_synced_at":"2024-08-18T18:04:22.049Z","etag":null,"topics":["asio","asio-library","asynchronous","cpp","cpp-library","networking","zig-package"],"latest_commit_sha":null,"homepage":"http://think-async.com/Asio","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"chriskohlhoff/asio","license":"bsl-1.0","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}},"created_at":"2023-03-01T19:22:37.000Z","updated_at":"2024-08-18T16:39:07.000Z","dependencies_parsed_at":"2023-10-10T18:41:04.843Z","dependency_job_id":null,"html_url":"https://github.com/kassane/asio","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kassane%2Fasio","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kassane%2Fasio/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kassane%2Fasio/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kassane%2Fasio/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kassane","download_url":"https://codeload.github.com/kassane/asio/tar.gz/refs/heads/zig-pkg","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224528399,"owners_count":17326359,"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":["asio","asio-library","asynchronous","cpp","cpp-library","networking","zig-package"],"created_at":"2024-08-02T23:01:07.355Z","updated_at":"2025-05-06T20:32:48.131Z","avatar_url":"https://github.com/kassane.png","language":"C++","readme":"## Asio Standalone for Zig Package Manager (MVP)\n\n* Original source: https://github.com/chriskohlhoff/asio\n\n### How to use\n\n* Download [Zig v0.14 or higher](https://ziglang.org/download)\n* Make on your project `build.zig` \u0026 `build.zig.zon` file\n\ne.g:\n\n* **build.zig**\n```zig\n    const asio_dep = b.dependency(\"asio\", .{ // \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 libasio = asio_dep.artifact(\"asio\"); // \u003c== has the location of the dependency files (asio)\n    /// your executable config\n    exe.linkLibrary(libasio); // \u003c== link libasio\n    exe.installLibraryHeaders(libasio); // \u003c== get copy asio headers to zig-out/include \n```\n* **build.zig.zon**\n\n```bash\n# '--save=asio': (over)write latest git commit (no need manually update)\n$ zig fetch --save=asio git+https://github.com/kassane/asio\n```\nor add manually to your `build.zig.zon` file:\n\n```zig\n.{\n    .name = \"example\",\n    .version = \"0.1.0\",\n    .paths = .{\"\"},\n    .dependencies = .{\n        .asio = .{\n            .url = \"https://github.com/kassane/asio/archive/[tag/commit-hash].tar.gz\",\n            // or\n            .url = \"git+https://https://github.com/kassane/asio#commit-hash\",\n            .hash = \"[multihash - sha256-2]\",\n        },\n    },\n}\n```\n\n```bash\n# zig project helper\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  -DShared=[bool]              Build the Shared Library (default: false)\n  -DSSL=[bool]                 Build Asio with OpenSSL support (default: false)\n  -DTests=[bool]               Build tests (default: false)\n```\n\n### More info about zig-pkg\n- https://github.com/ziglang/zig/pull/14265\n- https://github.com/ziglang/zig/issues/14307\n","funding_links":[],"categories":["Interoperability"],"sub_categories":["Build with Zig"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkassane%2Fasio","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkassane%2Fasio","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkassane%2Fasio/lists"}