No description
  • Zig 96.6%
  • Shell 3.4%
Find a file
Arbel Arad 6998e288a5
All checks were successful
ci / build (Debug, aarch64-linux-gnu) (push) Successful in 1m55s
ci / build (Debug, aarch64-linux-musl) (push) Successful in 2m10s
ci / build (Debug, x86_64-linux-gnu) (push) Successful in 1m41s
ci / build (Debug, riscv64-linux-gnu) (push) Successful in 2m42s
ci / build (Debug, x86_64-macos) (push) Successful in 1m50s
ci / build (Debug, x86_64-linux-musl) (push) Successful in 2m14s
ci / build (Debug, riscv64-linux-musl) (push) Successful in 2m24s
ci / build (ReleaseFast, aarch64-linux-gnu) (push) Successful in 2m28s
ci / build (Debug, x86_64-windows-gnu) (push) Successful in 2m31s
ci / build (ReleaseFast, aarch64-linux-musl) (push) Successful in 2m27s
ci / build (ReleaseFast, aarch64-macos) (push) Successful in 2m42s
ci / build (ReleaseFast, riscv64-linux-gnu) (push) Successful in 2m35s
ci / build (ReleaseFast, x86_64-macos) (push) Successful in 2m10s
ci / build (ReleaseFast, x86_64-linux-gnu) (push) Successful in 2m33s
ci / build (ReleaseFast, x86_64-windows-gnu) (push) Successful in 2m11s
ci / build (ReleaseFast, x86_64-linux-musl) (push) Successful in 2m17s
ci / build (ReleaseSafe, aarch64-linux-gnu) (push) Successful in 2m26s
ci / build (ReleaseSafe, aarch64-linux-musl) (push) Successful in 1m44s
ci / build (ReleaseSafe, riscv64-linux-gnu) (push) Successful in 1m44s
ci / build (ReleaseSafe, aarch64-macos) (push) Successful in 1m50s
ci / build (ReleaseSafe, riscv64-linux-musl) (push) Successful in 1m14s
ci / build (ReleaseSafe, x86_64-linux-gnu) (push) Successful in 1m48s
ci / build (Debug, aarch64-macos) (push) Successful in 1m43s
ci / build (ReleaseFast, riscv64-linux-musl) (push) Successful in 48s
ci / build (ReleaseSafe, x86_64-linux-musl) (push) Successful in 48s
ci / build (ReleaseSafe, x86_64-windows-gnu) (push) Successful in 48s
ci / build (ReleaseSmall, aarch64-linux-gnu) (push) Successful in 48s
ci / build (ReleaseSmall, aarch64-linux-musl) (push) Successful in 52s
ci / build (ReleaseSmall, x86_64-linux-musl) (push) Successful in 47s
ci / build (ReleaseSmall, x86_64-linux-gnu) (push) Successful in 1m44s
ci / build (ReleaseSmall, riscv64-linux-musl) (push) Successful in 1m54s
ci / build (ReleaseSmall, riscv64-linux-gnu) (push) Successful in 2m10s
ci / test (ReleaseSmall, ubuntu-latest) (push) Successful in 2m5s
ci / build (ReleaseSmall, x86_64-windows-gnu) (push) Successful in 2m4s
ci / build (ReleaseSmall, aarch64-macos) (push) Successful in 2m21s
ci / build (ReleaseSmall, x86_64-macos) (push) Successful in 2m4s
ci / test (ReleaseFast, ubuntu-latest) (push) Successful in 2m13s
ci / test (ReleaseSafe, ubuntu-latest) (push) Successful in 2m15s
ci / test (Debug, ubuntu-latest) (push) Successful in 2m15s
ci / build (ReleaseSafe, x86_64-macos) (push) Successful in 57s
no periodic checks
2025-05-11 22:10:57 +03:00
.github/workflows no periodic checks 2025-05-11 22:10:57 +03:00
mbedtls@22098d41c6 updated mbedtls and build system 2025-05-09 12:05:51 +03:00
src works on my machine 2021-12-17 08:48:11 -08:00
.gitattributes add gitattributes 2021-12-31 00:15:43 -08:00
.gitignore updated mbedtls and build system 2025-05-09 12:05:51 +03:00
.gitmodules fix submodule name (#4) 2022-01-01 20:47:51 -08:00
build.zig added new library file list 2025-05-09 14:02:09 +03:00
build.zig.zon add missing output paths 2025-05-11 22:05:46 +03:00
liblist.sh add missing output paths 2025-05-11 22:05:46 +03:00
LICENSE add ci, readme, license 2021-12-30 18:41:22 -08:00
README.md updated mbedtls and build system 2025-05-09 12:05:51 +03:00

mbedtls build package

ci

How to use

This repo contains code for your build.zig that can statically compile mbedtls.

In order to statically link mbedtls into your application:

const mbedtls = @import("path/to/mbedtls.zig");

pub fn build(b: *std.build.Builder) void {
    // ...

    const lib = mbedtls.create(b, target, optimize);

    const exe = b.addExecutable(.{
        .name = "my-program",
        .root_source_file = .{ .path = "src/main.zig" },
        .target = target,
        .optimize = optimize,
    });
    lib.link(exe);
}