rust-spice

![logo image]

![crate badge] ![doc badge] ![license badge] ![pre-commit badge]

WOW! The complete NASA/NAIF Spice toolkit is actually usable on Rust


In action | Installation | License


In action

Quick example showing the simplicity of using Spice in Rust.

```Rust use spice;

// ugly and unsafe: using binded C Spice. unsafe { let kernel = CString::new("/path/to/metakernel.mk").unwrap().intoraw(); spice::c::furnshc(kernel); spice::c::unload_c(kernel); }

// pretty: using the nice Rust interface. let mut kernel = spice::Kernel::new("/path/to/metakernels.mk")?; kernel.unload()?; ```

Read more in the documentation online.

Installation

Add the dependency rust-spice to your Cargo.toml:

toml ... [dependencies] rust-spice = "0.4.0"

License

Licensed under the Apache License, Version 2.0.