Skip to content

Latest commit

 

History

History
41 lines (32 loc) · 1.66 KB

README.md

File metadata and controls

41 lines (32 loc) · 1.66 KB

zig-cookie

CI CD DC CC LC

Zig port of cookie library for HTTP cookie storage.

🚀 Usage

  • Add cookie dependency to build.zig.zon.
zig fetch --save https://github.com/tensorush/zig-cookie/archive/<git_tag_or_commit_hash>.tar.gz
  • Use cookie dependency in build.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);