Skip to content

nanomsg-next-generation (nng) packaged for the zig build system

License

Notifications You must be signed in to change notification settings

allyourcodebase/nng

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nng

nanomessage next generation packaged using the zig build system.

Currently it's only properly tested in linux. If you have a build bug in another platform feel free to open a issue (or better, a PR).

Usage

Add the dep to your build.zig.zon:

# master
zig fetch --save git+https://github.com/Tomcat-42/nng
# tagged release
zig fetch --save https://github.com/Tomcat-42/nng/archive/refs/tags/${tag}.tar.gz

Then in the build.zig file add the library as a dep:

const nng = b.dependency("nng", .{ .optimize = optimize, .target = target });
compile_target.linklibrary(nng.artifact("nng"));

Then, in your compile target:

const nng = @cImport({
    @cInclude("nng/nng.h");
    @cInclude("nng/args.h");
    @cInclude("nng/http.h");
});

About

nanomsg-next-generation (nng) packaged for the zig build system

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages