cspice-sys
Unsafe bindings to the NAIF SPICE Toolkit.
Read the official CSPICE documentation online
Please note this is a complete replacement of the 0.x version of the crate, under a new maintainer
Installation
You must first have installed the CSPICE toolkit by downloading and extracting the appropriate archive from here.
You must set the CSPICE_DIR environment variable to point to the extracted cspice directory (which should contain
the include and lib directories).
WARNING: On Unix like systems you will likely need to rename lib/cspice.a to lib/libcspice.a so that it can be
successfully linked.
You must have Clang installed and on your PATH to be able to generate
the bindings.
Also see the GitHub workflow for examples on how to set this up.
Cross Compilation
You can use the CSPICE_CLANG_TARGET environment variable to override the --target parameter for Clang (when
generating bindings).
You can use the CSPICE_CLANG_ROOT environment variable to override the --sysroot parameter for Clang (when
generating bindings).