An open API service indexing awesome lists of open source software.

https://github.com/tensorush/zig-cookie

Zig port of cookie-rs library for HTTP cookie storage.
https://github.com/tensorush/zig-cookie

zig zig-library zig-package

Last synced: about 2 months ago
JSON representation

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

Awesome Lists containing this project

README

          

# zig-cookie

## Zig port of [cookie-rs library](https://github.com/rwf2/cookie-rs) for HTTP cookie storage.

### Usage

1. Add `cookie` dependency to `build.zig.zon`:

```sh
zig fetch --save git+https://github.com/tensorush/zig-cookie.git
```

2. Use `cookie` dependency in `build.zig`:

```zig
const cookie_dep = b.dependency("cookie", .{
.target = target,
.optimize = optimize,
});
const cookie_mod = cookie_dep.module("cookie");

const root_mod = b.createModule(.{
.target = target,
.optimize = optimize,
.imports = &.{
.{ .name = "cookie", .module = cookie_mod },
},
});
```