1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60
/*!
# Thermophysical Model for Binary Asteroids
Latest executables of **kalast** [can be downloaded here][releases].
**kalast** can also be used as a library in Rust.
Add the dependency to your `Cargo.toml`:
```toml
[dependencies]
kalast = "0.3"
```
and have a look at [the examples][examples] or [the different modules here][crate#modules].
Information on the configuration of your **kalast** scenarios are located at the documentation of
[the module `cfg`][mod@cfg].
[examples]: https://github.com/GregoireHENRY/kalast/tree/main/examples
[releases]: https://github.com/GregoireHENRY/kalast/releases
*/
pub mod body;
pub mod cfg;
pub mod simu;
pub mod thermal;
pub mod util;
pub mod win;
pub use body::*;
pub use cfg::*;
pub use simu::*;
pub use thermal::*;
pub use util::*;
pub use win::*;
#[cfg(feature = "spice")]
pub use spice;
use snafu::prelude::*;
pub type Result<T, E = Error> = std::result::Result<T, E>;
#[derive(Debug, Snafu)]
pub enum Error {
CfgError { source: CfgError },
SurfaceError { source: SurfaceError },
}
impl From<CfgError> for Error {
fn from(value: CfgError) -> Self {
Self::CfgError { source: value }
}
}
impl From<SurfaceError> for Error {
fn from(value: SurfaceError) -> Self {
Self::SurfaceError { source: value }
}
}