Skip to content

Latest commit

 

History

History
22 lines (16 loc) · 494 Bytes

README.md

File metadata and controls

22 lines (16 loc) · 494 Bytes

zig-cookie

Zig port of cookie-rs library for HTTP cookie storage.

Usage

  • Add cookie dependency to build.zig.zon.
zig fetch --save git+https://github.com/tensorush/zig-cookie
  • 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);