{"id":19340499,"url":"https://github.com/doccaico/calc-zig","last_synced_at":"2025-10-15T07:52:28.553Z","repository":{"id":237152508,"uuid":"793911671","full_name":"doccaico/calc-zig","owner":"doccaico","description":null,"archived":false,"fork":false,"pushed_at":"2024-04-30T06:54:15.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-06T11:38:31.707Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Zig","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":"2024-04-30T05:25:22.000Z","updated_at":"2024-04-30T06:54:18.000Z","dependencies_parsed_at":null,"dependency_job_id":"af7f9e9b-9818-4d5b-8b97-b7387ab75fa3","html_url":"https://github.com/doccaico/calc-zig","commit_stats":null,"previous_names":["doccaico/calc-zig"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doccaico%2Fcalc-zig","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doccaico%2Fcalc-zig/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doccaico%2Fcalc-zig/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doccaico%2Fcalc-zig/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/doccaico","download_url":"https://codeload.github.com/doccaico/calc-zig/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240443646,"owners_count":19802084,"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":[],"created_at":"2024-11-10T03:26:42.225Z","updated_at":"2025-10-15T07:52:23.515Z","avatar_url":"https://github.com/doccaico.png","language":"Zig","funding_links":[],"categories":[],"sub_categories":[],"readme":"#### Usage\n\nOn terminal\n\n```\n$ zig fetch --save=calc-zig https://github.com/doccaico/calc-zig/archive/\u003cHASH\u003e.tar.gz\n```\n\n```zig\n// build.zig\n\nconst calc_zig_dep = b.dependency(\"calc-zig\", .{ .target = target, .optimize = optimize });\nexe.linkLibrary(calc_zig_dep.artifact(\"calc\"));\n\n// main.zig\n\nconst std = @import(\"std\");\n\nconst c = @cImport({\n    @cInclude(\"calc-c/calc-c.h\");\n});\n\npub fn main() void {\n    std.debug.print(\"{d}\\n\", .{c.add(1, 2)});\n    std.debug.print(\"{d}\\n\", .{c.sub(10, 3)});\n    std.debug.print(\"{s}\\n\", .{c.CALC_C_VERSION});\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdoccaico%2Fcalc-zig","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdoccaico%2Fcalc-zig","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdoccaico%2Fcalc-zig/lists"}