https://github.com/allyourcodebase/libiconv
libiconv ported to the zig build system
https://github.com/allyourcodebase/libiconv
Last synced: 4 months ago
JSON representation
libiconv ported to the zig build system
- Host: GitHub
- URL: https://github.com/allyourcodebase/libiconv
- Owner: allyourcodebase
- License: lgpl-2.1
- Created: 2025-06-11T16:39:11.000Z (9 months ago)
- Default Branch: master
- Last Pushed: 2025-06-11T16:45:21.000Z (9 months ago)
- Last Synced: 2025-06-21T04:34:46.201Z (8 months ago)
- Language: Zig
- Size: 14.6 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: COPYING
Awesome Lists containing this project
README
[](https://github.com/allyourcodebase/libiconv/actions)
# libiconv
This is [GNU libiconv](https://www.gnu.org/software/libiconv/), packaged for [Zig](https://ziglang.org/).
## 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:
```zig
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.