#fits #cfitsio #astronomy

bin+lib rsfitsio

Rust bindings for the CFITSIO library, providing access to FITS files

11 releases

Uses new Rust 2024

0.462.10 Sep 20, 2025
0.462.9 Sep 20, 2025
0.462.7 Aug 4, 2025
0.462.5 Jun 29, 2025
0.1.0 Mar 20, 2025

#86 in Science

MIT/Apache and CC-PDDC licenses

7MB
141K SLoC

Contains (ELF exe/lib, 4.5MB) c/print_rs

Crates.io CI Documentation codecov Dependency status

Rust rewrite of cfitsio.

This is a line for line translation of cfitsio, attempting to keep it as compatible as possible and synced with the main repo. The repo exposes a compatible C API.

There are many safety issues to still deal with and we do not support all the targets that the original C code does.

C API Compatibility

This library exposes the complete cfitsio C API with one exception:

  • CUnit2FITS() - This function is not exposed as it is primarily used for Fortran wrapper support, which is not supported in this Rust implementation.

All other 662 C API functions from cfitsio are available.

cfitsio Repo

cfitsio Homepage

Fits File Standard

Non-Goals

  • VAX / VMS / ALPHA Support

Dependencies

~4.5–10MB
~208K SLoC