1#[cfg(not(target_endian = "little"))]
7compile_error!("diskann-utils assumes little-endian targets");
8
9pub mod reborrow;
10pub use reborrow::{Reborrow, ReborrowMut};
11
12pub mod lifetime;
13pub use lifetime::WithLifetime;
14
15pub mod future;
16
17pub mod io;
18pub mod sampling;
19
20pub mod strided;
22pub mod views;
23
24mod lazystring;
25pub use lazystring::LazyString;
26
27#[cfg(feature = "testing")]
28#[doc(hidden)]
29pub fn workspace_root() -> std::path::PathBuf {
30 std::path::PathBuf::from(env!("CARGO_MANIFEST_DIR"))
31 .parent()
32 .unwrap()
33 .to_path_buf()
34}
35
36#[cfg(feature = "testing")]
37#[doc(hidden)]
38pub fn test_data_directory() -> &'static str {
39 "test_data"
40}
41
42#[cfg(feature = "testing")]
43#[doc(hidden)]
44pub fn test_data_root() -> std::path::PathBuf {
45 workspace_root().join(test_data_directory())
46}