Skip to content

Commit 5298ef4

Browse files
committed
add readme
1 parent e94dd13 commit 5298ef4

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

README.md

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# picohttpparser
2+
3+
This is https://github.com/h2o/picohttpparser packaged for [Zig](https://ziglang.org)
4+
5+
# Installation
6+
7+
Use `zig fetch`:
8+
9+
```
10+
zig fetch --save git+https://github.com/vrischmann/zig-picohttpparser-sys#master
11+
```
12+
13+
You can then import `picohttpparser` in your `build.zig`:
14+
```zig
15+
const picohttpparser = b.dependency("picohttpparser", .{
16+
.target = target,
17+
.optimize = optimize,
18+
});
19+
20+
your_exe.addIncludePath(picohttpparser.path("."));
21+
your_exe.linkLibrary(picohttpparser.artifact("picohttpparser"));
22+
```

0 commit comments

Comments
 (0)