satkit/utils/
mod.rs

1mod datadir;
2pub use datadir::data_found;
3pub use datadir::datadir;
4pub use datadir::set_datadir;
5
6#[cfg(test)]
7pub mod test;
8
9mod update_data;
10pub use update_data::update_datafiles;
11
12mod download;
13pub use download::download_file;
14pub use download::download_file_async;
15pub use download::download_if_not_exist;
16pub use download::download_to_string;
17
18#[cfg(feature = "pybindings")]
19mod pypackage;
20
21
22///
23/// Return git hash of compiled library
24///
25pub const fn githash<'a>() -> &'a str {
26    env!("GIT_HASH")
27}
28
29///
30/// Return git tag of compiled library
31///
32pub const fn gittag<'a>() -> &'a str {
33    env!("GIT_TAG")
34}
35
36///
37/// Return libary compile date
38///
39pub const fn build_date<'a>() -> &'a str {
40    env!("BUILD_DATE")
41}