Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kassane/zig-gpa-ffi
Testing GPA in FFI
https://github.com/kassane/zig-gpa-ffi
allocator bindings cpp ffi ffi-bindings malloc-free memory-allocation memory-management rust zig ziglang
Last synced: about 15 hours ago
JSON representation
Testing GPA in FFI
- Host: GitHub
- URL: https://github.com/kassane/zig-gpa-ffi
- Owner: kassane
- License: mit
- Created: 2024-12-15T17:20:38.000Z (about 2 months ago)
- Default Branch: main
- Last Pushed: 2024-12-20T17:51:57.000Z (about 2 months ago)
- Last Synced: 2025-02-10T04:46:08.531Z (about 21 hours ago)
- Topics: allocator, bindings, cpp, ffi, ffi-bindings, malloc-free, memory-allocation, memory-management, rust, zig, ziglang
- Language: Zig
- Homepage:
- Size: 19.5 KB
- Stars: 2
- Watchers: 0
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# zig-gpa-ffi
Testing [`std.heap.GeneralPurposeAllocator`](https://ziglang.org/documentation/master/std/#std.heap.GeneralPurposeAllocator) in FFI.
## Required
- Zig 0.13.0 or master
- Rust 1.82.0 or nightly## Some references for tests
- Rust [Global Allocator](https://doc.rust-lang.org/std/alloc/trait.GlobalAlloc.html)
- 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
- C++17 [PMR](https://en.cppreference.com/w/cpp/memory/polymorphic_allocator)