Zig implementation of the HTTP cookie specification.
-
Add
cookie
as a dependency in yourbuild.zig.zon
.build.zig.zon
example.{ .name = "<name_of_your_package>", .version = "<version_of_your_package>", .dependencies = .{ .cookie = .{ .url = "https://github.com/tensorush/zig-cookie/archive/<git_tag_or_commit_hash>.tar.gz", .hash = "<package_hash>", }, }, }
Set
<package_hash>
to12200000000000000000000000000000000000000000000000000000000000000000
and build your package to find the correct value specified in a compiler error message. -
Add
cookie
as a module in yourbuild.zig
.build.zig
exampleconst cookie = b.dependency("cookie", .{}); lib.root_module.addImport("cookie", cookie.module("cookie"));