{"id":23178353,"url":"https://github.com/kassane/zig-gpa-ffi","last_synced_at":"2026-03-11T04:31:47.726Z","repository":{"id":268284760,"uuid":"903836105","full_name":"kassane/zig-gpa-ffi","owner":"kassane","description":"Testing GPA in FFI","archived":false,"fork":false,"pushed_at":"2025-06-11T00:52:46.000Z","size":25,"stargazers_count":2,"open_issues_count":2,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-20T00:22:08.306Z","etag":null,"topics":["allocation","allocator","bindings","cpp","ffi","ffi-bindings","malloc-free","memory-allocation","memory-management","rust","rust-allocator-interface","zig","ziglang"],"latest_commit_sha":null,"homepage":"","language":"Zig","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-12-15T17:20:38.000Z","updated_at":"2025-06-11T00:52:50.000Z","dependencies_parsed_at":"2024-12-15T19:40:26.599Z","dependency_job_id":"5c500397-8c5b-45d9-bd5b-e7b34b01a854","html_url":"https://github.com/kassane/zig-gpa-ffi","commit_stats":null,"previous_names":["kassane/zig-gpa-ffi"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/kassane/zig-gpa-ffi","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kassane%2Fzig-gpa-ffi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kassane%2Fzig-gpa-ffi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kassane%2Fzig-gpa-ffi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kassane%2Fzig-gpa-ffi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kassane","download_url":"https://codeload.github.com/kassane/zig-gpa-ffi/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kassane%2Fzig-gpa-ffi/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30370797,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-10T21:41:54.280Z","status":"online","status_checked_at":"2026-03-11T02:00:07.027Z","response_time":84,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["allocation","allocator","bindings","cpp","ffi","ffi-bindings","malloc-free","memory-allocation","memory-management","rust","rust-allocator-interface","zig","ziglang"],"created_at":"2024-12-18T07:10:22.545Z","updated_at":"2026-03-11T04:31:47.707Z","avatar_url":"https://github.com/kassane.png","language":"Zig","funding_links":[],"categories":[],"sub_categories":[],"readme":"# zig-gpa-ffi\n\nTesting [`std.heap.DebugAllocator`](https://ziglang.org/documentation/master/std/#std.heap.DebugAllocator) in FFI.\n\n## Required\n\n- Zig 0.14.0 or master\n- Rust 1.82.0 or nightly\n\nIt is also possible to preload in the posix environment.\n\n```console\nzig build-lib -dynamic zig/src/lib.zig --name zalloc\n```\n\n```bash\nLD_PRELOAD=libzalloc.so {app}\n```\n\n## Some references for tests\n\n- Rust [Global Allocator](https://doc.rust-lang.org/std/alloc/trait.GlobalAlloc.html)\n- C++ [new](https://en.cppreference.com/w/cpp/memory/new/operator_new)/[delete](https://en.cppreference.com/w/cpp/memory/new/operator_delete) operators override\n- C++17 [PMR](https://en.cppreference.com/w/cpp/memory/polymorphic_allocator)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkassane%2Fzig-gpa-ffi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkassane%2Fzig-gpa-ffi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkassane%2Fzig-gpa-ffi/lists"}