{"id":16985255,"url":"https://github.com/malcolmstill/zig-amqp","last_synced_at":"2025-10-03T16:29:31.587Z","repository":{"id":150800727,"uuid":"307886518","full_name":"malcolmstill/zig-amqp","owner":"malcolmstill","description":"AMQP 0.9.1 library for Zig","archived":false,"fork":false,"pushed_at":"2025-02-08T19:36:08.000Z","size":184,"stargazers_count":6,"open_issues_count":7,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-14T18:40:59.885Z","etag":null,"topics":["amqp","amqp0-9-1","zig"],"latest_commit_sha":null,"homepage":"","language":"Zig","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/malcolmstill.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":"2020-10-28T02:34:40.000Z","updated_at":"2025-02-11T16:35:45.000Z","dependencies_parsed_at":null,"dependency_job_id":"fdc229b9-093b-4f1f-bc11-b329d823d7f6","html_url":"https://github.com/malcolmstill/zig-amqp","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/malcolmstill%2Fzig-amqp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/malcolmstill%2Fzig-amqp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/malcolmstill%2Fzig-amqp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/malcolmstill%2Fzig-amqp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/malcolmstill","download_url":"https://codeload.github.com/malcolmstill/zig-amqp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244227577,"owners_count":20419263,"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":["amqp","amqp0-9-1","zig"],"created_at":"2024-10-14T02:43:03.578Z","updated_at":"2025-10-03T16:29:31.517Z","avatar_url":"https://github.com/malcolmstill.png","language":"Zig","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003ezig-amqp\u003c/h1\u003e\n\n\u003cdiv align=\"center\"\u003e\n  \u003cstrong\u003eAMQP 0.9.1 library for Zig\u003c/strong\u003e\n\u003c/div\u003e\n\n## About\n\n`zig-amqp` is a [Zig](https://ziglang.org) library for writing AMQP 0.9.1 clients (and servers), letting zig programs to connect to, for example, [RabbitMQ](https://www.rabbitmq.com/).\n\n## How to use\n\nSee [the examples](https://github.com/malcolmstill/zig-amqp/tree/master/examples) for an idea of how to use the library.\n\nThe simplest program is probably a simple declare and publish:\n\n```zig\nconst std = @import(\"std\");\nconst amqp = @import(\"amqp\");\n\nvar rx_memory: [4096]u8 = undefined;\nvar tx_memory: [4096]u8 = undefined;\n\npub fn main() !void {\n    var conn = amqp.init(rx_memory[0..], tx_memory[0..]);\n    const addr = try std.net.Address.parseIp4(\"127.0.0.1\", 5672);\n    try conn.connect(addr);\n\n    var ch = try conn.channel();\n    _ = try ch.queueDeclare(\"simple_publish\", .{}, null);\n\n    try ch.basicPublish(\"\", \"simple_publish\", \"hello world\", .{});\n}\n```\n\n## Status\n\nThe project is alpha with only basic functionality working and almost certainly is not\nready for you to use. Contributions welcome and I can prioritise features that people\nrequire.\n\n## Goals\n\n- Easy to use API\n- Simple / clean code\n- Minimal allocations / customisable allocation\n- Fast\n\n## Dependencies\n\n### Runtime\n\n- None...and the binaries are small (other than a server to speak to)\n\n```\n➜  zig-amqp git:(master) ✗ zig build-exe src/example.zig -O ReleaseSafe --strip \n➜  zig-amqp git:(master) ✗ ldd example                                        \n        not a dynamic executable\n➜  zig-amqp git:(master) ✗ ls -l example                                      \n-rwxr-xr-x. 1 malcolm malcolm 44872 Dec 20 04:26 example\n```\n\n\n### Build\n\n- A zig compiler (tested on at least 0.13.0)\n\n### Regenerating `src/protocol.zig`\n\n- python 3\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmalcolmstill%2Fzig-amqp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmalcolmstill%2Fzig-amqp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmalcolmstill%2Fzig-amqp/lists"}