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.
- Host: GitHub
- URL: https://github.com/tensorush/zig-cookie
- Owner: tensorush
- License: mit
- Created: 2024-03-05T18:13:03.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-04T13:52:51.000Z (4 months ago)
- Last Synced: 2025-03-04T14:34:48.593Z (4 months ago)
- Topics: zig, zig-library, zig-package
- Language: Zig
- Homepage: https://tensorush.github.io/zig-cookie/
- Size: 31.3 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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);
```