# 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.86"
name = "cobre-sddp"
version = "0.6.0"
authors = ["Rogerio J. M. Alves <rogerio.alves@cobre-rs.dev>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Stochastic Dual Dynamic Programming (SDDP) for hydrothermal dispatch and energy planning"
homepage = "https://cobre-rs.github.io/cobre-docs/"
readme = "README.md"
keywords = [
    "sddp",
    "hydrothermal",
    "dispatch",
    "optimization",
    "energy",
]
categories = [
    "science",
    "simulation",
    "mathematics",
]
license = "Apache-2.0"
repository = "https://github.com/cobre-rs/cobre"
resolver = "2"

[features]
dhat-heap = ["dep:dhat"]
slow-tests = []

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[dependencies.chrono]
version = "0.4"
features = ["std"]
default-features = false

[dependencies.cobre-comm]
version = "0.6.0"

[dependencies.cobre-core]
version = "0.6.0"

[dependencies.cobre-io]
version = "0.6.0"

[dependencies.cobre-solver]
version = "0.6.0"

[dependencies.cobre-stochastic]
version = "0.6.0"

[dependencies.dhat]
version = "0.3"
optional = true

[dependencies.postcard]
version = "1"
features = ["alloc"]

[dependencies.rayon]
version = "1"

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

[dependencies.thiserror]
version = "2"

[dependencies.tracing]
version = "0.1"

[dev-dependencies.arrow]
version = "58"
features = ["prettyprint"]
default-features = false

[dev-dependencies.chrono]
version = "0.4"
features = ["std"]
default-features = false

[dev-dependencies.criterion]
version = "0.5"
default-features = false

[dev-dependencies.parquet]
version = "58"
features = [
    "arrow",
    "zstd",
]
default-features = false

[dev-dependencies.rand]
version = "0.10"

[dev-dependencies.rand_distr]
version = "0.6"

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

[dev-dependencies.sha2]
version = "0.10"

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

[dev-dependencies.tracing-subscriber]
version = "0.3"

[lints.clippy]
expect_used = "warn"
panic = "warn"
too_many_arguments = "deny"
unwrap_used = "deny"

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

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

[lints.rust]
missing_docs = "warn"
unsafe_code = "forbid"
