Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
rust-spice
WOW! The complete NASA/NAIF Spice toolkit is actually usable on Rust
Intro | Requirements | In action | In development | Installation | License
Intro
SPICE is An Observation Geometry System for Space Science Missions. Visit their website.
Requirements
- Install CSPICE library for your platform.
- Add to your environment variable
$PATH
the path to the CSPICE folder. For instance:/home/username/softwares/cspice
. The folder must be named cspice.
Installation
Add the dependency rust-spice to your Cargo.toml
:
...
[]
= "*" # replace * by the latest version of the crate
In action
A nice and idiomatic interface to Spice,
use spice;
let mut kernel = new?;
let et = str2et;
let = spkpos;
kernel.unload?;
Read more in the documentation online and see examples.
In development
Developing an idiomatic interface for Spice in Rust takes time, and not all functions are implemented yet. In the documentation online, a complete guide details which functions are available. If yours is not, you can always use the unsafe API which contains all cspice functions.
For instance, with the unsafe API, the example above would be,
use spice;
use CString;
unsafe
Much less friendly, but it's available. I would love some help in order to complete the idiomatic development. You can raise an issue or propose a pull request for the implementation of a specific function.
License
Licensed under the Apache License, Version 2.0.