# 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.93"
name = "gam"
version = "0.3.98"
build = "build.rs"
include = [
    "/src/**/*.rs",
    "/src/**/*.pest",
    "/bench/cargo_benches/**/*.rs",
    "/build.rs",
    "/Cargo.toml",
    "/rust-toolchain.toml",
    "/rustfmt.toml",
    "/README.md",
    "/LICENSE",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
default-run = "gam"
description = "Generalized penalized likelihood engine"
readme = "README.md"
license = "AGPL-3.0-or-later"

[package.metadata.cargo-machete]
ignored = [
    "grep",
    "walkdir",
]

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

[[bin]]
name = "gam"
path = "src/main.rs"

[[bench]]
name = "arrow_schur_gpu_bench"
path = "bench/cargo_benches/arrow_schur_gpu_bench.rs"
harness = false

[[bench]]
name = "bms_hv_row_skip"
path = "bench/cargo_benches/bms_hv_row_skip.rs"
harness = false

[[bench]]
name = "bvn_biobank_shape"
path = "bench/cargo_benches/bvn_biobank_shape.rs"
harness = false

[[bench]]
name = "cell_moment_dedup_biobank_shape"
path = "bench/cargo_benches/cell_moment_dedup_biobank_shape.rs"
harness = false

[[bench]]
name = "cell_moment_lru_biobank_shape"
path = "bench/cargo_benches/cell_moment_lru_biobank_shape.rs"
harness = false

[[bench]]
name = "closed_form_criterion"
path = "bench/cargo_benches/closed_form_criterion.rs"
harness = false

[[bench]]
name = "closed_form_pair_block"
path = "bench/cargo_benches/closed_form_pair_block.rs"
harness = false

[[bench]]
name = "cubic_hex_tensor_gpu_parity"
path = "bench/cargo_benches/cubic_hex_tensor_gpu_parity.rs"
harness = false

[[bench]]
name = "joint_line_search_speculative"
path = "bench/cargo_benches/joint_line_search_speculative.rs"
harness = false

[[bench]]
name = "line_search_subsample_screen"
path = "bench/cargo_benches/line_search_subsample_screen.rs"
harness = false

[[bench]]
name = "margslope_flex_biobank_hv"
path = "bench/cargo_benches/margslope_flex_biobank_hv.rs"
harness = false

[[bench]]
name = "non_affine_cell_hv_shape"
path = "bench/cargo_benches/non_affine_cell_hv_shape.rs"
harness = false

[[bench]]
name = "pirls_gpu_bench"
path = "bench/cargo_benches/pirls_gpu_bench.rs"
harness = false

[[bench]]
name = "reml_gpu_bench"
path = "bench/cargo_benches/reml_gpu_bench.rs"
harness = false

[[bench]]
name = "row_cell_moments_biobank_shape"
path = "bench/cargo_benches/row_cell_moments_biobank_shape.rs"
harness = false

[[bench]]
name = "sae_arrow_schur_bench"
path = "bench/cargo_benches/sae_arrow_schur_bench.rs"
harness = false

[[bench]]
name = "spatial_basis_construction"
path = "bench/cargo_benches/spatial_basis_construction.rs"
harness = false

[[bench]]
name = "tail_cell_memo_biobank_shape"
path = "bench/cargo_benches/tail_cell_memo_biobank_shape.rs"
harness = false

[[bench]]
name = "trust_region_line_search"
path = "bench/cargo_benches/trust_region_line_search.rs"
harness = false

[dependencies.arrow]
version = "54"
features = ["ffi"]
default-features = false

[dependencies.clap]
version = "4.6.1"
features = ["derive"]

[dependencies.comfy-table]
version = "7.2.2"

[dependencies.crossterm]
version = "0.29.0"

[dependencies.csv]
version = "1.4.0"

[dependencies.dyn-stack]
version = "0.13.2"

[dependencies.faer]
version = "0.24.0"

[dependencies.general-mcmc]
version = "0.9"
default-features = false
package = "general-mcmc"

[dependencies.libloading]
version = "0.8.9"

[dependencies.libm]
version = "0.2.16"

[dependencies.log]
version = "0.4.29"

[dependencies.memmap2]
version = "0.9.10"

[dependencies.ndarray]
version = "0.17.2"
features = [
    "serde",
    "rayon",
]

[dependencies.opt]
version = "0.5.2"

[dependencies.parquet]
version = "54"
features = [
    "arrow",
    "snap",
    "zstd",
    "lz4",
]
default-features = false

[dependencies.pest]
version = "2.8.6"

[dependencies.pest_derive]
version = "2.8.6"

[dependencies.rand]
version = "0.10.1"

[dependencies.rand_distr]
version = "0.6.0"

[dependencies.ratatui]
version = "0.30.0"

[dependencies.rayon]
version = "1.12.0"

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

[dependencies.serde_json]
version = "1.0.149"

[dependencies.sha2]
version = "0.10.8"

[dependencies.smallvec]
version = "1"

[dependencies.statrs]
version = "0.18.0"

[dependencies.sysinfo]
version = "0.32"
features = ["system"]
default-features = false

[dependencies.thiserror]
version = "2.0.18"

[dependencies.wide]
version = "0.7"

[dev-dependencies.ad_trait]
version = "0.3.0"

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

[dev-dependencies.autodiff]
version = "0.7.0"

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

[dev-dependencies.num-dual]
version = "0.13.6"

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

[target.'cfg(target_os = "linux")'.dependencies.cudarc]
version = "0.19.6"
features = [
    "std",
    "driver",
    "runtime",
    "nvrtc",
    "cublas",
    "cublaslt",
    "cusparse",
    "cusolver",
    "cusolvermg",
    "curand",
    "nvtx",
    "cupti",
    "fallback-dynamic-loading",
    "cuda-12080",
]
default-features = false

[lints.clippy.all]
level = "allow"
priority = -1

[lints.clippy.cargo]
level = "allow"
priority = -1

[lints.clippy.complexity]
level = "allow"
priority = -1

[lints.clippy.correctness]
level = "allow"
priority = -1

[lints.clippy.nursery]
level = "allow"
priority = -1

[lints.clippy.pedantic]
level = "allow"
priority = -1

[lints.clippy.perf]
level = "allow"
priority = -1

[lints.clippy.restriction]
level = "allow"
priority = -1

[lints.clippy.style]
level = "allow"
priority = -1

[lints.clippy.suspicious]
level = "allow"
priority = -1

[lints.rust]
warnings = "deny"

[profile.dev]
debug = "line-tables-only"

[profile.release]
lto = "thin"
codegen-units = 1

[profile.release-dev]
lto = false
codegen-units = 16
debug = 0
inherits = "release"

[profile.release-pypi]
lto = "fat"
codegen-units = 1
debug = 0
inherits = "release"
strip = "debuginfo"

[profile.test]
debug = "line-tables-only"
