Zig build of CFITSIO library.
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2024-07-24 14:00:07 +03:00
.github/workflows fix(ci): install job 2024-07-16 13:24:55 +03:00
src fix: library header import 2024-07-16 14:12:12 +03:00
.gitattributes init 2024-07-16 13:22:00 +03:00
.gitignore init 2024-07-16 13:22:00 +03:00
build.zig fix: add UBSAN flags 2024-07-24 14:00:07 +03:00
build.zig.zon init 2024-07-16 13:22:00 +03:00
LICENSE init 2024-07-16 13:22:00 +03:00
README.md fix: add UBSAN flags 2024-07-24 14:00:07 +03:00

cfitsio

CI LC

Zig build of cfitsio library.

🚀 Usage

  • Add cfitsio dependency to build.zig.zon.
zig fetch --save https://github.com/allyourcodebase/cfitsio/archive/<git_tag_or_commit_hash>.tar.gz
  • Use cfitsio dependency in build.zig.
const cfitsio_dep = b.dependency("cfitsio", .{
    .target = target,
    .optimize = optimize,
});
const cfitsio_mod = cfitsio_dep.module("cfitsio");
<compile>.root_module.addImport("cfitsio", cfitsio_mod);