# 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 = "rsxcore"
version = "0.2.5"
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Rust library for RAD-seq sex-determination marker analysis (RADSex-compatible)"
documentation = "https://rsx.rgoswami.me"
readme = false
keywords = [
    "bioinformatics",
    "rad-seq",
    "sex-determination",
    "genomics",
    "ffi",
]
categories = [
    "science",
    "api-bindings",
]
license = "GPL-3.0-or-later"
repository = "https://github.com/HaoZeke/rsx-rs"
resolver = "2"

[package.metadata.capi]
min_version = "0.10.0"

[package.metadata.capi.header]
name = "rsx"
subdirectory = "rsx"

[package.metadata.capi.pkg_config]
name = "rsx"
filename = "rsx"

[package.metadata.capi.library]
name = "rsx"

[features]
arrow-input = [
    "dep:arrow",
    "dep:parquet",
]
arrow-output = ["dep:arrow"]
default = [
    "parallel",
    "map",
]
gen-header = ["dep:cbindgen"]
map = ["dep:minimap2"]
mpi = ["dep:mpi"]
parallel = [
    "dep:rayon",
    "dep:dashmap",
]
parquet-io = [
    "dep:arrow",
    "dep:parquet",
]

[lib]
name = "rsx_core"
crate-type = [
    "staticlib",
    "cdylib",
    "lib",
]
path = "src/lib.rs"

[[test]]
name = "test_pipeline"
path = "tests/test_pipeline.rs"

[[test]]
name = "test_precision"
path = "tests/test_precision.rs"

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

[dependencies.ahash]
version = "0.8"

[dependencies.arrow]
version = "55"
optional = true

[dependencies.dashmap]
version = "6"
optional = true

[dependencies.env_logger]
version = "0.11"

[dependencies.flate2]
version = "1"

[dependencies.hexf]
version = "0.2"

[dependencies.indexmap]
version = "2"

[dependencies.libm]
version = "0.2"

[dependencies.log]
version = "0.4"

[dependencies.lz4_flex]
version = "0.11"

[dependencies.memchr]
version = "2"

[dependencies.memmap2]
version = "0.9"

[dependencies.minimap2]
version = "0.1"
optional = true

[dependencies.mpi]
version = "0.8.1"
optional = true

[dependencies.needletail]
version = "0.6"

[dependencies.parquet]
version = "55"
features = ["arrow"]
optional = true

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

[dependencies.ryu]
version = "1"

[dependencies.tempfile]
version = "3"

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

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

[build-dependencies.cbindgen]
version = "0.28"
optional = true
