rust-spice 0.4.0

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

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.

use spice;

// ugly and unsafe: using binded C Spice.
unsafe {
    let kernel = CString::new("/path/to/metakernel.mk").unwrap().into_raw();
    spice::c::furnsh_c(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:

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

License

Licensed under the Apache License, Version 2.0.