libressl/readme.md

24 lines
519 B
Markdown
Raw Normal View History

2024-09-14 16:07:45 -07:00
# LibreSSL
This is [LibreSSL Portable](https://github.com/libressl/portable), packaged for [Zig](https://ziglang.org/).
## Installation
First, update your `build.zig.zon`:
```
# Initialize a `zig build` project if you haven't already
zig init
zig fetch --save <PLACEHOLDER>
```
You can then import `libressl` in your `build.zig` with:
```zig
const libressl_dependency = b.dependency("libressl", .{
.target = target,
.optimize = optimize,
});
your_exe.linkLibrary(libressl_dependency.artifact("tls"));
```