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
// for logging (debug mostly, switched at compile time in cargo.toml)
use env_logger::{Builder};
#[macro_use]
extern crate lazy_static;
pub mod hnsw;
pub mod dist;
pub mod hnswio;
pub mod prelude;
pub mod api;
pub mod libext;
pub mod flatten;
lazy_static! {
static ref LOG: u64 = {
let res = init_log();
res
};
}
// install a logger facility
fn init_log() -> u64 {
Builder::from_default_env().init();
println!("\n ************** initializing logger *****************\n");
return 1;
}