Skip to main content

readcon_db/
lib.rs

1//! Embedded CON/convel corpus on LMDB (Heed) with non-SQL selection and xxHash3 exact match.
2//!
3//! Optional `python` feature builds PyO3 bindings. C ABI is always compiled into
4//! `cdylib`/`staticlib` (`src/ffi.rs`).
5
6mod cooked_soa;
7mod corpus;
8mod frame_scalars;
9mod error;
10mod export_xyz;
11mod keys;
12mod select;
13mod shard;
14
15pub use cooked_soa::CookedSoa;
16pub use corpus::{frame_fmax, ConCorpus};
17pub use frame_scalars::{frame_cell_volume, frame_total_mass};
18pub use error::{Error, Result};
19pub use export_xyz::{write_frame_extxyz, write_frames_extxyz};
20pub use keys::{
21    composition_formula, hash_frame_bytes, species_counts_from_symbols, ContentHash, FrameIdx,
22    FrameKey, TrajId,
23};
24pub use select::Select;
25pub use shard::{join_corpus_dirs, CorpusExportKind, ShardedConCorpus, ShardManifest, DEFAULT_N_SHARDS};
26
27pub mod ffi;
28
29#[cfg(feature = "python")]
30mod python;