mirror of
https://github.com/allyourcodebase/editline.git
synced 2026-11-17 01:11:18 +00:00
editline ported to the zig build system
- Zig 100%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| .gitignore | ||
| build.zig | ||
| build.zig.zon | ||
| README.md | ||
editline
This is editline, packaged for Zig.
How to use it
First, update your build.zig.zon:
zig fetch --save https://github.com/allyourcodebase/editline.git
Next, add this snippet to your build.zig script:
const editline_dep = b.dependency("editline", .{
.target = target,
.optimize = optimize,
});
your_compilation.linkLibrary(editline_dep.artifact("editline"));
This will provide a editline as a static library to your_compilation.