# 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.88"
name = "cobre-cli"
version = "0.8.1"
authors = ["Rogerio J. M. Alves <rogerio.alves@cobre-rs.dev>"]
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Command-line interface for Cobre power system studies"
homepage = "https://cobre-rs.github.io/cobre-docs/"
readme = "README.md"
keywords = [
    "power-systems",
    "cli",
    "energy",
    "sddp",
    "simulation",
]
categories = [
    "command-line-utilities",
    "science",
]
license = "Apache-2.0"
repository = "https://github.com/cobre-rs/cobre"
resolver = "2"

[features]
clp = [
    "cobre-solver/clp",
    "cobre-sddp/clp",
]
default = ["highs"]
highs = [
    "cobre-solver/highs",
    "cobre-sddp/highs",
]
mpi = ["cobre-comm/mpi"]
slow-tests = []

[[bin]]
name = "cobre"
path = "src/main.rs"
doc = false

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[dependencies.cobre-core]
version = "0.8.1"
features = ["serde"]

[dependencies.cobre-io]
version = "0.8.1"
features = ["schema"]

[dependencies.cobre-sddp]
version = "0.8.1"
default-features = false

[dependencies.cobre-solver]
version = "0.8.1"
default-features = false

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

[dependencies.console]
version = "0.16"

[dependencies.indicatif]
version = "0.18"

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

[dependencies.rayon]
version = "1"

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

[dependencies.serde_json]
version = "1"

[dependencies.thiserror]
version = "2"

[dependencies.tracing]
version = "0.1"

[dependencies.tracing-subscriber]
version = "0.3"
features = ["env-filter"]

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

[dev-dependencies.assert_cmd]
version = "2"

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

[dev-dependencies.cobre-io]
version = "0.8.1"

[dev-dependencies.cobre-solver]
version = "0.8.1"
default-features = false

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

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

[dev-dependencies.tempfile]
version = "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"
