No description
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-08-31 02:08:10 +02:00
.github/workflows Update to Zig 0.16.0 2026-08-31 02:08:10 +02:00
.gitattributes initial commit 2025-06-11 18:36:31 +02:00
.gitignore Update to Zig 0.16.0 2026-08-31 02:08:10 +02:00
build.zig Update to Zig 0.16.0 2026-08-31 02:08:10 +02:00
build.zig.zon Update to Zig 0.16.0 2026-08-31 02:08:10 +02:00
COPYING initial commit 2025-06-11 18:36:31 +02:00
README.md initial commit 2025-06-11 18:36:31 +02:00

CI

libiconv

This is GNU libiconv, 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/libiconv.git

You can then import libiconv in your build.zig with:

const libiconv_dependency = b.dependency("libiconv", .{
    .target = target,
    .optimize = optimize,
});
your_exe.linkLibrary(libiconv_dependency.artifact("iconv"));

Be aware that iconv is already available on most targets when linking libc. A notable exception is Windows.