# 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 = "2021"
name = "mzdata"
version = "0.63.3"
build = false
exclude = [
    "tmp/*",
    "test/data/*",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A library to read mass spectrometry data formats and a data model for mass spectra"
documentation = "https://docs.rs/mzdata"
readme = "README.md"
keywords = [
    "mass-spectrometry",
    "mzml",
    "mgf",
]
categories = [
    "science",
    "parser-implementations",
    "data-structures",
]
license = "Apache-2.0"
repository = "https://github.com/mobiusklein/mzdata"

[package.metadata.docs.rs]
features = [
    "mzml",
    "mgf",
    "parallelism",
    "mzsignal",
    "nalgebra",
    "mzmlb",
    "imzml",
    "async",
    "proxi",
    "proxi-async",
    "doc-only",
    "bruker_tdf",
]
no-default-features = true

[features]
async = [
    "async_partial",
    "tokio/fs",
]
async_partial = [
    "dep:tokio",
    "quick-xml/async-tokio",
    "dep:futures",
    "dep:pin-project-lite",
]
bruker_tdf = [
    "dep:timsrust",
    "dep:parking_lot",
    "dep:rusqlite",
    "mzsignal",
    "checksum",
]
checksum = [
    "dep:md5",
    "dep:sha1",
    "dep:base16ct",
]
default = [
    "zlib-ng-compat",
    "mgf",
    "mzml",
]
doc-only = []
hdf5_static = [
    "mzmlb",
    "hdf5-sys/static",
    "hdf5-sys/zlib",
    "dep:libz-sys",
]
imzml = [
    "mzml",
    "dep:uuid",
]
intel-mkl = [
    "mzsignal",
    "mzsignal/intel-mkl",
]
libloading = ["dep:libloading"]
mgf = []
miniz_oxide = ["flate2/rust_backend"]
mzml = [
    "dep:quick-xml",
    "checksum",
    "dep:memchr",
    "dep:encoding_rs",
]
mzmlb = [
    "mzml",
    "dep:hdf5",
    "dep:ndarray",
    "dep:hdf5-sys",
]
nalgebra = [
    "mzsignal",
    "mzsignal/nalgebra",
]
netlib = [
    "mzsignal",
    "mzsignal/netlib",
]
openblas = [
    "mzsignal",
    "mzsignal/openblas",
]
parallelism = [
    "dep:rayon",
    "mzsignal?/parallelism",
]
proxi = [
    "dep:reqwest",
    "serde",
]
proxi-async = [
    "proxi",
    "dep:futures",
]
serde = [
    "dep:serde",
    "mzpeaks/serde",
    "mzsignal?/serde",
    "chrono/serde",
    "dep:serde_json",
    "dep:serde_with",
]
thermo = [
    "dep:thermorawfilereader",
    "thermorawfilereader/net8_0",
    "thermorawfilereader/nethost-download",
    "checksum",
]
zlib = ["flate2/zlib"]
zlib-ng = ["flate2/zlib-ng"]
zlib-ng-compat = ["flate2/zlib-ng-compat"]
zlib-rs = ["flate2/zlib-rs"]
zstd = ["dep:zstd"]

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

[[bin]]
name = "mzdata"
path = "src/main.rs"

[[example]]
name = "async_mzcat"
path = "examples/async_mzcat.rs"
required-features = ["async"]

[[example]]
name = "averaging_writer"
path = "examples/averaging_writer.rs"
required-features = [
    "parallelism",
    "mzsignal",
    "nalgebra",
]

[[example]]
name = "compressed_mzml"
path = "examples/compressed_mzml.rs"

[[example]]
name = "describe_instrument"
path = "examples/describe_instrument.rs"

[[example]]
name = "from_stdin"
path = "examples/from_stdin.rs"

[[example]]
name = "get_scan_by"
path = "examples/get_scan_by.rs"

[[example]]
name = "infer_format"
path = "examples/infer_format.rs"

[[example]]
name = "msn_target_mapping"
path = "examples/msn_target_mapping.rs"

[[example]]
name = "mzcat"
path = "examples/mzcat.rs"
required-features = ["parallelism"]

[[example]]
name = "mzconvert"
path = "examples/mzconvert.rs"
doc-scrape-examples = true

[[example]]
name = "mzinfo"
path = "examples/mzinfo.rs"
doc-scrape-examples = true

[[example]]
name = "random_access_iter"
path = "examples/random_access_iter.rs"
doc-scrape-examples = true
required-features = ["nalgebra"]

[[example]]
name = "readme"
path = "examples/readme.rs"

[[bench]]
name = "mzml"
path = "benches/mzml.rs"
harness = false

[dependencies.base16ct]
version = "0.2.0"
features = ["alloc"]
optional = true

[dependencies.base64-simd]
version = "0.8.0"

[dependencies.bitflags]
version = "2.5.0"

[dependencies.bytemuck]
version = "1.18.0"
features = [
    "extern_crate_alloc",
    "min_const_generics",
]

[dependencies.chrono]
version = "0.4.37"

[dependencies.encoding_rs]
version = "0.8.35"
optional = true

[dependencies.filename]
version = "0.1.1"
optional = true

[dependencies.flate2]
version = "1.0.20"

[dependencies.futures]
version = "0.3"
optional = true

[dependencies.hdf5]
version = "0.8.1"
features = [
    "blosc",
    "lzf",
]
optional = true

[dependencies.hdf5-sys]
version = "0.8.1"
optional = true

[dependencies.identity-hash]
version = "0.1.0"

[dependencies.indexmap]
version = "2.0.0"
features = ["serde"]

[dependencies.libloading]
version = "0.8.6"
optional = true

[dependencies.libz-sys]
version = "1.1"
features = ["static"]
optional = true
default-features = false

[dependencies.log]
version = "0.4.20"

[dependencies.md5]
version = "0.7.0"
optional = true

[dependencies.memchr]
version = "2.7.4"
optional = true

[dependencies.mzpeaks]
version = ">=1.0.6,<1.1.0"

[dependencies.mzsignal]
version = ">=1.1.5,<1.2.0"
features = ["avx"]
optional = true
default-features = false

[dependencies.ndarray]
version = "0.15.6"
optional = true

[dependencies.num-traits]
version = "0.2"

[dependencies.numpress]
version = "1.1.0"
optional = true
package = "numpress-rs"

[dependencies.parking_lot]
version = "0.12.3"
optional = true

[dependencies.pin-project-lite]
version = "0.2.16"
optional = true

[dependencies.quick-xml]
version = "0.30"
features = ["serialize"]
optional = true

[dependencies.rayon]
version = ">=1.8.0,<2.0"
optional = true

[dependencies.regex]
version = "1"

[dependencies.reqwest]
version = "0.12"
features = [
    "json",
    "blocking",
]
optional = true

[dependencies.rusqlite]
version = "0.31.0"
optional = true

[dependencies.serde]
version = "1.0"
features = ["derive"]
optional = true

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

[dependencies.serde_with]
version = "3.12.0"
optional = true

[dependencies.sha1]
version = "0.10.6"
optional = true

[dependencies.thermorawfilereader]
version = "0.5.5"
optional = true
default-features = false

[dependencies.thiserror]
version = "2.0.2"

[dependencies.timsrust]
version = "0.4.1"
features = ["tdf"]
optional = true
default-features = false

[dependencies.tokio]
version = "1.42"
features = ["macros"]
optional = true

[dependencies.uuid]
version = "1.0"
features = [
    "v4",
    "serde",
]
optional = true

[dependencies.zstd]
version = "0.13.3"
optional = true

[dev-dependencies.clap]
version = "4.4.11"
features = ["derive"]

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

[dev-dependencies.env_logger]
version = "0.11.6"

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

[dev-dependencies.test-log]
version = "0.2.12 "

[dev-dependencies.tokio]
version = "1.42"
features = [
    "macros",
    "fs",
    "rt-multi-thread",
]

[profile.release]
lto = true
debug = 2
