nuvec_io/lib.rs
1//! Reading and writing arrays: safetensors (MLX's checkpoint format) and NumPy's `.npy`,
2//! loaded without a copy by memory-mapping the file, and the IDX format (MNIST); a
3//! minimal [`json`] parser for model files.
4//!
5//! **Status:** pre-alpha.
6
7#![forbid(unsafe_code)]
8
9mod idx;
10pub mod json;
11mod npy;
12mod safetensors;
13
14pub use idx::{parse_idx, read_idx};
15pub use npy::{load_npy, save_npy};
16pub use safetensors::{SafeTensors, load_safetensors, save_safetensors};
17
18/// The version of this crate.
19pub const VERSION: &str = env!("CARGO_PKG_VERSION");