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: 3 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

- Add `cookie` dependency to `build.zig.zon`.

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

- Use `cookie` dependency in `build.zig`.

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