# 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 = "rscopulas"
version = "0.2.1"
authors = ["alwo"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Core Rust library for fitting, evaluating, and sampling copula models and vine copulas"
homepage = "https://github.com/alexwox/rscopulas"
documentation = "https://docs.rs/rscopulas"
readme = "README.md"
keywords = [
    "copula",
    "statistics",
    "vines",
    "dependence",
    "probability",
]
categories = [
    "mathematics",
    "science",
]
license = "MIT"
repository = "https://github.com/alexwox/rscopulas"
resolver = "2"

[features]
cuda = []
default = []
metal = []

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[dependencies.ndarray]
version = "0.17"
features = ["serde"]

[dependencies.rand]
version = "0.9.2"

[dependencies.rand_distr]
version = "0.5.1"

[dependencies.rayon]
version = "1.11"

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

[dependencies.statrs]
version = "0.18.0"

[dependencies.thiserror]
version = "2.0"

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

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

[target.'cfg(any(target_os = "linux", target_os = "windows"))'.dependencies.cudarc]
version = "0.19.4"
features = [
    "driver",
    "nvrtc",
    "dynamic-loading",
    "cuda-12040",
]
default-features = false

[target.'cfg(target_os = "macos")'.dependencies.metal]
version = "0.31"
