# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

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

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

[lib]
name = "mrc"
path = "src/lib.rs"

[[bin]]
name = "mrc-header"
path = "src/bin/mrc-header.rs"

[[bin]]
name = "mrc-invert"
path = "src/bin/mrc-invert.rs"

[[bin]]
name = "mrc-validate"
path = "src/bin/mrc-validate.rs"

[dependencies.bzip2]
version = "0.5"
optional = true

[dependencies.flate2]
version = "1.0"
optional = true

[dependencies.half]
version = "2.5"
optional = true

[dependencies.memmap2]
version = "0.9"
optional = true

[dependencies.rayon]
version = "1.10"
optional = true

[dependencies.thiserror]
version = "2.0.16"
default-features = false

[dev-dependencies.criterion]
version = "0.5"
features = ["html_reports"]

[dev-dependencies.tempfile]
version = "3.8"
