Skip to content

kassane/zig-gpa-ffi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

zig-gpa-ffi

Testing std.heap.DebugAllocator in FFI.

Required

  • Zig 0.14.0 or master
  • Rust 1.82.0 or nightly

It is also possible to preload in the posix environment.

zig build-lib -dynamic zig/src/lib.zig --name zalloc
LD_PRELOAD=libzalloc.so {app}

Some references for tests