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

https://github.com/ikskuh/zig-bearssl

A BearSSL binding for Zig
https://github.com/ikskuh/zig-bearssl

bearssl ssl tls zig zig-package ziglang

Last synced: 10 months ago
JSON representation

A BearSSL binding for Zig

Awesome Lists containing this project

README

          

# zig-bearssl
A [BearSSL](https://bearssl.org/) binding for Zig, providing primitive (and probably unsafe, i'm no SSL expert) bindings for SSL and TLS connections to generic zig code.

## Adding to your project

You can pull this into your project with:
```sh
zig fetch --save git+https://github.com/ikskuh/zig-bearssl
```

Then in your `build.zig` you can add the module.

```zig
// Assuming you have `target` and `optimize` defined already

const bearssl = b.dependency(
"zig_bearssl",
.{ .target = target, .optimize = optimize },
);

// Assuming you have an `exe_mod` representing your module
exe_mod.addImport("bearssl", bearssl.module("bearssl"));
```

Then from inside your zig code you can do:

```zig
const bearssl = @import("bearssl")
```