Zig port of cookie library for HTTP cookie storage.
- Add
cookie
dependency tobuild.zig.zon
.
zig fetch --save https://github.com/tensorush/zig-cookie/archive/<git_tag_or_commit_hash>.tar.gz
- Use
cookie
dependency inbuild.zig
.
const cookie_dep = b.dependency("cookie", .{
.target = target,
.optimize = optimize,
});
const cookie_mod = cookie_dep.module("cookie");
<compile>.root_module.addImport("cookie", cookie_mod);