Skip to main content

cyanea_core/
lib.rs

1//! Shared primitives, traits, and utilities for the Cyanea bioinformatics ecosystem.
2//!
3//! `cyanea-core` provides the foundation that all other Cyanea crates build on:
4//!
5//! - **Error types** — [`CyaneaError`] and [`Result`] for structured error handling
6//! - **Traits** — Core abstractions like [`Sequence`], [`ContentAddressable`], [`Compressible`]
7//! - **Hashing** — SHA-256 content addressing for data integrity
8//! - **Compression** — zstd and gzip with algorithm auto-detection
9//! - **Memory mapping** — Zero-copy file access (std feature only)
10
11pub mod error;
12pub mod traits;
13pub mod hash;
14pub mod prob;
15pub mod bitvec;
16pub mod fenwick;
17
18#[cfg(feature = "std")]
19pub mod compress;
20
21#[cfg(feature = "std")]
22pub mod mmap;
23
24pub use error::{CyaneaError, Result};
25pub use traits::*;
26pub use prob::{LogProb, PhredProb};
27pub use bitvec::{RankSelectBitVec, WaveletMatrix};
28pub use fenwick::FenwickTree;