diskann-utils 0.50.1

DiskANN is a fast approximate nearest neighbor search library for high dimensional data
Documentation
/*
 * Copyright (c) Microsoft Corporation.
 * Licensed under the MIT license.
 */

#[cfg(not(target_endian = "little"))]
compile_error!("diskann-utils assumes little-endian targets");

pub mod reborrow;
pub use reborrow::{Reborrow, ReborrowMut};

pub mod lifetime;
pub use lifetime::WithLifetime;

pub mod future;

pub mod io;
pub mod sampling;

// Views
pub mod strided;
pub mod views;

mod lazystring;
pub use lazystring::LazyString;

#[cfg(feature = "testing")]
#[doc(hidden)]
pub fn workspace_root() -> std::path::PathBuf {
    std::path::PathBuf::from(env!("CARGO_MANIFEST_DIR"))
        .parent()
        .unwrap()
        .to_path_buf()
}

#[cfg(feature = "testing")]
#[doc(hidden)]
pub fn test_data_directory() -> &'static str {
    "test_data"
}

#[cfg(feature = "testing")]
#[doc(hidden)]
pub fn test_data_root() -> std::path::PathBuf {
    workspace_root().join(test_data_directory())
}