# 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.1"
build = "build.rs"
include = [
    "/src/**/*.rs",
    "/src/**/*.lean",
    "/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 = "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 = "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 = "row_cell_moments_biobank_shape"
path = "bench/cargo_benches/row_cell_moments_biobank_shape.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.approx]
version = "0.5.1"

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

[dependencies.clap]
version = "4.6.0"
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.0"
default-features = false
package = "general-mcmc"

[dependencies.indicatif]
version = "0.18.4"

[dependencies.log]
version = "0.4.29"

[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.0"

[dependencies.rand_distr]
version = "0.6.0"

[dependencies.ratatui]
version = "0.30.0"

[dependencies.rayon]
version = "1.11.0"

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

[dependencies.serde_json]
version = "1.0.149"

[dependencies.smallvec]
version = "1"

[dependencies.statrs]
version = "0.18.0"

[dependencies.tempfile]
version = "3.27.0"

[dependencies.thiserror]
version = "2.0.18"

[dependencies.wide]
version = "0.7"

[dependencies.zip]
version = "8.2.0"
features = ["deflate"]
default-features = false

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

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

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

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

[lints.rust]
warnings = "deny"

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

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