mbedtls packaged with zig
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-06-25 23:08:33 +02:00
.github/workflows fix cross compile step in build.yml 2025-11-17 18:32:39 +01:00
.gitattributes add .gitattributes 2025-11-17 18:35:04 +01:00
.gitignore upgrade to mbedtls 3.6.6 (#6) 2026-06-25 23:08:33 +02:00
build.zig upgrade to mbedtls 3.6.6 (#6) 2026-06-25 23:08:33 +02:00
build.zig.zon upgrade to mbedtls 3.6.6 (#6) 2026-06-25 23:08:33 +02:00
LICENSE build mbedtls with zig 2024-09-21 21:28:09 +02:00
README.md fix link to CI in README.md 2025-11-17 18:34:57 +01:00

CI

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"));