Skip to main content

Module utils

Module utils 

Source
Expand description

Utility functions

Re-exports§

pub use datadir::add_search_dir;
pub use datadir::data_found;
pub use datadir::datadir;
pub use datadir::find_file as find_data_file;
pub use datadir::search_dirs as data_search_dirs;
pub use datadir::set_datadir;
pub use update_data::update_datafiles;
pub use singleton::RefreshableSingleton;
pub use download::download_file;
pub use download::download_file_async;
pub use download::download_if_not_exist;
pub use download::download_to_string;
pub use download::is_offline;
pub use download::set_offline;
pub use download::OFFLINE_ENV;
pub use manifest::fetch_static_file;
pub use manifest::Manifest;
pub use manifest::ManifestEntry;

Modules§

datadir
Where satkit’s data files live.
download
embedded
Core data files compiled into the library.
manifest
Embedded manifest of satkit’s static data files, with verified download.
singleton
A small helper for module-scope, refreshable, lazily-loaded singletons.
update_data
Download / refresh the data files satkit needs.

Functions§

build_date
Return libary compile date
githash
Return git hash of compiled library
gittag
Return git tag of compiled library