Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/allyourcodebase/cfitsio

Zig build of CFITSIO library.
https://github.com/allyourcodebase/cfitsio

cfitsio fits fits-files fits-image fitsio zig zig-lang zig-language zig-library zig-package ziglang

Last synced: 2 days ago
JSON representation

Zig build of CFITSIO library.

Awesome Lists containing this project

README

        

# cfitsio

[![CI][ci-shd]][ci-url]
[![LC][lc-shd]][lc-url]

## Zig build of [cfitsio library](https://github.com/HEASARC/cfitsio).

### :rocket: Usage

- Add `cfitsio` dependency to `build.zig.zon`.

```sh
zig fetch --save https://github.com/allyourcodebase/cfitsio/archive/.tar.gz
```

- Use `cfitsio` dependency in `build.zig`.

```zig
const cfitsio_dep = b.dependency("cfitsio", .{
.target = target,
.optimize = optimize,
});
const cfitsio_mod = cfitsio_dep.module("cfitsio");
.root_module.addImport("cfitsio", cfitsio_mod);
```

[ci-shd]: https://img.shields.io/github/actions/workflow/status/allyourcodebase/cfitsio/ci.yaml?branch=main&style=for-the-badge&logo=github&label=CI&labelColor=black
[ci-url]: https://github.com/allyourcodebase/cfitsio/blob/main/.github/workflows/ci.yaml
[lc-shd]: https://img.shields.io/github/license/allyourcodebase/cfitsio.svg?style=for-the-badge&labelColor=black
[lc-url]: https://github.com/allyourcodebase/cfitsio/blob/main/LICENSE