Skip to content

kassane/zig-scudo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

scudo-zig

Scudo Allocator for Zig

Requires

  • Zig v0.13.0 or master

How to use

# Create a project
$ mkdir project_name
$ cd project_name
$ zig init

# get zig-scudo (add on zon file - overwrited)
zig fetch --save=scudo git+https://github.com/kassane/zig-scudo

In build.zig, add:

// pkg name (same in zon file)
const scudo_dep = b.dependency("scudo",.{.target = target, .optimize = optimize });
const scudo_module = scudo_dep.module("scudoAllocator"); // get lib + zig bindings

// my project (executable)
exe.root_module.addImport("scudoAllocator", scudo_module);

References

About

Scudo Allocator for Zig

Topics

Resources

License

Stars

Watchers

Forks

Contributors