zigjr

A Lightweight Zig Library for JSON-RPC 2.0

GitHub Stars

37

User Rating

Not Rated

Favorites

0

Views

30

Forks

2

Issues

0

Installation
Difficulty
Advanced
Estimated Time
20-45 minutes

Installation

Select a version of the library in the [Releases](https://github.com/williamw520/zigjr/releases) page, and copy its asset URL. E.g. https://github.com/williamw520/zigjr/archive/refs/tags/1.0.0.tar.gz Use zig fetch to add the ZigJR package to your project's dependencies. Replace with the version you selected.
shell
zig fetch --save https://github.com/williamw520/zigjr/archive/refs/tags/.tar.gz
This command updates your build.zig.zon file, adding ZigJR to the dependencies section with its URL and content hash.
diff
 .{
    .name = "my-project",
    ...
    .dependencies = .{
 +       .zigjr = .{
 +           .url = "zig fetch https://github.com/williamw520/zigjr/archive/refs/tags/.tar.gz",
 +           .hash = "zigjr-...",
 +       },
    },
 }
 
Next, update your build.zig to add the ZigJR module to your executable.

Additional Resources