[package]
name = "mrc"
version = "0.2.4"
edition = "2024"
rust-version = "1.85"
description = "MRC-2014 file format reader/writer for cryo-EM — SIMD-accelerated, mmap-enabled"
license = "MIT"
repository = "https://github.com/elemeng/mrc"
homepage = "https://github.com/elemeng/mrc"
documentation = "https://docs.rs/mrc"
keywords = ["mrc", "cryo-em", "cryo-ET", "microscopy", "scientific-computing"]
categories = ["science", "data-structures", "memory-management"]
readme = "README.md"

[dependencies]
memmap2 = { version = "0.9", optional = true }
thiserror = { version = "2.0.16", default-features = false }
rayon = { version = "1.10", optional = true }
half = { version = "2.5", optional = true }
flate2 = { version = "1.0", optional = true }
bzip2 = { version = "0.5", optional = true }

[dev-dependencies]
criterion = { version = "0.5", features = ["html_reports"] }
tempfile = "3.8"


[features]
default = ["mmap", "f16", "simd", "parallel", "gzip"]
mmap = ["dep:memmap2"]
f16 = ["dep:half"]
parallel = ["dep:rayon"]
simd = []
gzip = ["dep:flate2"]
bzip2 = ["dep:bzip2"]
