ikskuh/zig-bearssl
A BearSSL binding for Zig
A BearSSL binding for Zig, providing primitive (and probably unsafe, i'm no SSL expert) bindings for SSL and TLS connections to generic zig code.
You can pull this into your project with:
zig fetch --save git+https://github.com/ikskuh/zig-bearssl
Then in your build.zig
you can add the module.
// 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:
const bearssl = @import("bearssl")