# 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.87"
name = "surge-opf"
version = "0.1.7"
authors = ["Amptimal LLC"]
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Surge OPF — Optimal Power Flow solvers (DC-OPF, AC-OPF, SCOPF)"
homepage = "https://amptimal.com/surge"
readme = "README.md"
keywords = [
    "power-systems",
    "opf",
    "ac-opf",
    "dc-opf",
    "scopf",
]
categories = [
    "science",
    "simulation",
    "mathematics",
]
license = "PolyForm-Noncommercial-1.0.0"
repository = "https://github.com/amptimal/surge"
resolver = "2"

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

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

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

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

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

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

[dependencies.anyhow]
version = "1"

[dependencies.clarabel]
version = "0.11"

[dependencies.faer]
version = "0.22"

[dependencies.libloading]
version = "0.8"

[dependencies.num-complex]
version = "0.4"
features = ["serde"]

[dependencies.rayon]
version = "1.10"

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

[dependencies.serde_json]
version = "1"

[dependencies.surge-ac]
version = "0.1.7"

[dependencies.surge-dc]
version = "0.1.7"

[dependencies.surge-hvdc]
version = "0.1.7"

[dependencies.surge-network]
version = "0.1.7"

[dependencies.surge-solution]
version = "0.1.7"

[dependencies.surge-sparse]
version = "0.1.7"

[dependencies.thiserror]
version = "2"

[dependencies.tracing]
version = "0.1"

[dev-dependencies.surge-ac]
version = "0.1.7"

[dev-dependencies.surge-io]
version = "0.1.7"
