# 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 = "laddu"
version = "0.1.6"
build = false
exclude = ["/python_examples"]
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Amplitude analysis made short and sweet"
homepage = "https://github.com/denehoffman/laddu"
documentation = "https://docs.rs/laddu"
readme = "README.md"
keywords = [
    "PWA",
    "amplitude",
    "particle",
    "physics",
    "modeling",
]
categories = [
    "science",
    "mathematics",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/denehoffman/laddu"

[package.metadata.docs.rs]
rustdoc-args = [
    "--html-in-header",
    "./docs/docs-header.html",
]

[package.metadata.maturin]
python-source = "python"

[profile.bench]
lto = true
codegen-units = 1
panic = "unwind"

[profile.perf]
debug = 2
inherits = "release"

[profile.release]
lto = true
codegen-units = 1
panic = "abort"

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

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

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

[dependencies.accurate]
version = "0.4.1"

[dependencies.arrow]
version = "53.1.0"

[dependencies.auto_ops]
version = "0.3.0"

[dependencies.dyn-clone]
version = "1.0.17"

[dependencies.factorial]
version = "0.4.0"

[dependencies.ganesh]
version = "0.13.0"

[dependencies.indexmap]
version = "2.6.0"

[dependencies.nalgebra]
version = "0.33.0"

[dependencies.num]
version = "0.4.3"

[dependencies.numpy]
version = "0.22.0"
features = ["nalgebra"]
optional = true

[dependencies.parking_lot]
version = "0.12.3"

[dependencies.parquet]
version = "53.1.0"

[dependencies.pyo3]
version = "0.22.5"
features = [
    "num-complex",
    "abi3-py37",
]
optional = true

[dependencies.rand]
version = "0.8.5"

[dependencies.rand_chacha]
version = "0.3.1"

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

[dependencies.serde]
version = "1.0.214"

[dependencies.serde-pickle]
version = "1.1.1"

[dependencies.shellexpand]
version = "3.1.0"

[dependencies.thiserror]
version = "2.0.0"

[dev-dependencies.approx]
version = "0.5.1"

[dev-dependencies.criterion]
version = "2.7.2"
features = ["html_reports"]
package = "codspeed-criterion-compat"

[features]
default = [
    "rayon",
    "python",
]
extension-module = ["pyo3/extension-module"]
f32 = []
python = [
    "dep:pyo3",
    "dep:numpy",
    "extension-module",
]
rayon = ["dep:rayon"]
