# 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-solver"
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 = "LP/MIP solver abstraction layer with HiGHS backend for power system optimization"
homepage = "https://cobre-rs.github.io/cobre-docs/"
readme = "README.md"
keywords = [
    "linear-programming",
    "optimization",
    "solver",
    "highs",
    "lp",
]
categories = [
    "science",
    "mathematics",
]
license = "Apache-2.0"
repository = "https://github.com/cobre-rs/cobre"
resolver = "2"

[features]
clp = []
default = ["highs"]
highs = []
test-support = []

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

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

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

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

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

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

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

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

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

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

[dependencies]

[dev-dependencies.matrixmultiply]
version = "= 0.3.10"
default-features = false

[build-dependencies.cc]
version = "1.2"

[build-dependencies.cmake]
version = "0.1"

[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 = "allow"
