# 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"
name = "bixverse-rs"
version = "0.3.2"
authors = ["Gregor Lueg <gregorlueg@me.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A Rust library with various utilities for computational biology and single cell."
readme = "README.md"
license = "MIT"
repository = "https://github.com/GregorLueg/bixverse-rs"

[package.metadata.docs.rs]
features = [
    "single-cell",
    "multi-modal",
]

[features]
gpu = [
    "cubecl",
    "ann-search-rs/gpu",
    "half",
    "cubek",
]
large_scale_diagnostics = []
multi-modal = ["single-cell"]
single-cell = [
    "half",
    "bincode",
    "indexmap",
    "memmap2",
    "hdf5",
    "lz4_flex",
    "ndarray",
]

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

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

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

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

[[bench]]
name = "gpu_k_means_bench"
path = "benches/gpu_k_means_bench.rs"
harness = false
required-features = ["gpu"]

[dependencies.ann-search-rs]
version = "0.4.3"

[dependencies.approx]
version = "0.5.1"

[dependencies.bincode]
version = "2.0.1"
features = ["serde"]
optional = true

[dependencies.cubecl]
version = "0.10.0"
features = [
    "wgpu",
    "cpu",
]
optional = true

[dependencies.cubek]
version = "0.2.0"
features = ["matmul"]
optional = true

[dependencies.document-features]
version = "0.2.12"

[dependencies.either]
version = "1.15.0"

[dependencies.extendr-api]
version = "0.9.0"

[dependencies.faer]
version = "0.23.2"

[dependencies.faer-entity]
version = "0.20.1"

[dependencies.faer-traits]
version = "0.23.2"

[dependencies.fmt]
version = "0.1.0"

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

[dependencies.hdf5]
version = "0.10.1"
features = [
    "static",
    "zlib",
]
optional = true
package = "hdf5-metno"

[dependencies.indexmap]
version = "2.13.0"
optional = true

[dependencies.lz4_flex]
version = "0.12.0"
optional = true

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

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

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

[dependencies.once_cell]
version = "1.21.3"

[dependencies.petgraph]
version = "0.8.3"

[dependencies.rand]
version = "0.9.2"

[dependencies.rand_distr]
version = "0.5.1"

[dependencies.rayon]
version = "1.11.0"

[dependencies.rustc-hash]
version = "2.1.1"

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

[dependencies.statrs]
version = "0.18.0"

[dependencies.thiserror]
version = "2.0.18"

[dependencies.thousands]
version = "0.2.0"

[dependencies.wide]
version = "1.4.0"

[profile.release]
opt-level = 3
lto = "thin"
codegen-units = 4
