# 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.87"
name = "num-dual"
version = "0.13.0"
authors = [
    "Gernot Bauer <bauer@itt.uni-stuttgart.de>",
    "Philipp Rehner <prehner@ethz.ch>",
]
build = false
exclude = [
    "/.github/*",
    "*.ipynb",
    "./docs/*",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Generalized (hyper) dual numbers for the calculation of exact (partial) derivatives"
homepage = "https://github.com/itt-ustutt/num-dual"
readme = "README.md"
keywords = [
    "mathematics",
    "numerics",
    "differentiation",
]
categories = [
    "data-structures",
    "science",
    "mathematics",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/itt-ustutt/num-dual"

[features]
default = []
python = [
    "pyo3",
    "numpy",
    "python_macro",
]
python_macro = []

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

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

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

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

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

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

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

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

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

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

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

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

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

[dependencies.approx]
version = "0.5"

[dependencies.nalgebra]
version = "0.34"

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

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

[dependencies.numpy]
version = "0.27"
optional = true

[dependencies.pyo3]
version = "0.27"
features = [
    "multiple-pymethods",
    "extension-module",
    "abi3",
    "abi3-py39",
]
optional = true

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

[dependencies.simba]
version = "0.9"

[dev-dependencies.criterion]
version = "0.8"

[dev-dependencies.serde_json]
version = "1.0"

[profile.release]
lto = true
