mirror of
https://github.com/allyourcodebase/mbedtls.git
synced 2026-11-17 01:20:35 +00:00
mbedtls packaged with zig
- Zig 100%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| .github/workflows | ||
| .gitattributes | ||
| .gitignore | ||
| build.zig | ||
| build.zig.zon | ||
| LICENSE | ||
| README.md | ||
Mbed TLS
This is Mbed TLS, packaged for Zig.
Installation
First, update your build.zig.zon:
# Initialize a `zig build` project if you haven't already
zig init
zig fetch --save git+https://github.com/allyourcodebase/mbedtls.git
You can then import mbedtls in your build.zig with:
const mbedtls_dependency = b.dependency("mbedtls", .{
.target = target,
.optimize = optimize,
});
your_exe.root_module.linkLibrary(mbedtls_dependency.artifact("mbedtls"));