Skip to content

About

The nanopb runtime library ported to the zig build system

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

Repository files navigation

nanopb Runtime

This is the nanopb runtime, packaged for Zig.

Status

This project only builds the nanopb runtime library. It does not build the nanopb code generator.

Linux, macOS and Windows are tested by CI.

Usage

First, update your build.zig.zon:

# Initialize a `zig build` project if you haven't already
zig init
# replace <refname> with the version you want to use, e.g. 0.4.9.1+0.14.0
zig fetch --save git+https://github.com/notfilippo/nanopb#<refname>

You can then use nanopb in your build.zig with:

const nanopb_dep = b.dependency("nanopb", .{
    .target = target,
    .optimize = optimize,
});
your_exe.linkLibrary(nanopb_dep.artifact("nanopb"));

About

The nanopb runtime library ported to the zig build system

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Used by

Contributors

Languages