topolog_embed/
lib.rs

1#![recursion_limit = "256"]
2
3pub mod backend;
4pub mod io;
5pub mod topolog;
6
7pub use backend::{AutoBackend, get_device};
8pub use topolog::{ParametricUmap, ParametricUmapConfig, Whitening, WhiteningConfig};
9
10use std::sync::Once;
11static INIT: Once = Once::new();
12
13pub fn init() {
14    INIT.call_once(|| {
15        // Read RUST_LOG env variable, default to "info" if not set
16        let env = env_logger::Env::default().default_filter_or("debug");
17
18        // don't panic if called multiple times across binaries
19        let _ = env_logger::Builder::from_env(env).try_init();
20    });
21}