Skip to content

teh-cmc/libbpf_zig

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

libbpf package for zig

This is libbpf, packaged for Zig.

How to use it

First, update your build.zig.zon with:

zig fetch --save https://github.com/tw4452852/libbpf_zig/archive/refs/tags/1.6.1-1.tar.gz

Next, add this snippet to your build.zig script:

const libbpf_dep = b.dependency("libbpf", .{
    .target = target,
    .optimize = optimize,
});
your_compilation.linkLibrary(libbpf_dep.artifact("bpf"));

This will add libbpf as a static library to your_compilation.

About

Zig package for libbpf

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Zig 100.0%