Skip to content
Snippets Groups Projects
lib.rs 841 B
Newer Older
Udo Eisenbarth's avatar
Udo Eisenbarth committed
//! This is the documentation for the **OPOSSUM** software package. **OPOSSUM** stands for
//! **Op**en-source **O**ptics **S**imulation **S**oftware and **U**nified **M**odeller.
/// The basic structure representing an optical element
pub mod optical;

pub mod dottable;

/// The basic structure containing the entire optical model
mod optic_scenery;
pub mod optic_ports;
Udo Eisenbarth's avatar
Udo Eisenbarth committed
pub mod nodes;

pub mod spectrum;
pub mod properties;

Udo Eisenbarth's avatar
Udo Eisenbarth committed
pub use optic_scenery::OpticScenery;
y.zobus's avatar
y.zobus committed

pub mod console;

fn get_version() -> String {
    let timestamp = DateTime::parse_from_rfc3339(env!("VERGEN_GIT_COMMIT_TIMESTAMP")).unwrap();
    format!(
        "{} ({})",
        env!("VERGEN_GIT_DESCRIBE"),
        timestamp.format("%Y/%m/%d %H:%M")
    )
}