# 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.2.0"
authors = ["Rogerio J. M. Alves <rogerio.alves@cobre.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"

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

[[test]]
name = "conformance"
path = "tests/conformance.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 = "fpha_computed"
path = "tests/fpha_computed.rs"

[[test]]
name = "fpha_evaporation"
path = "tests/fpha_evaporation.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 = "simulation_integration"
path = "tests/simulation_integration.rs"

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

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

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

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

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

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

[dependencies.rayon]
version = "1"

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

[dependencies.thiserror]
version = "2"

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

[dev-dependencies.chrono]
version = "0.4"
features = ["std"]
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.tempfile]
version = "3"

[lints.clippy]
expect_used = "warn"
panic = "warn"
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"
