# 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-ac"
version = "0.1.1"
authors = ["Amptimal LLC"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Surge AC — Full AC power flow solver (Newton-Raphson, Fast Decoupled, continuation)"
homepage = "https://amptimal.com/surge"
readme = "README.md"
keywords = [
    "power-systems",
    "ac-power-flow",
    "newton-raphson",
    "fdpf",
]
categories = [
    "science",
    "simulation",
    "algorithms",
]
license = "PolyForm-Noncommercial-1.0.0"
repository = "https://github.com/amptimal/surge"
resolver = "2"

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

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

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

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

[dependencies.faer]
version = "0.22"

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

[dependencies.rayon]
version = "1.10"

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

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

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

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

[dependencies.surge-topology]
version = "0.1.1"

[dependencies.thiserror]
version = "2"

[dependencies.tracing]
version = "0.1"

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

[dev-dependencies.dyn-stack]
version = "0.13"

[dev-dependencies.serde-value]
version = "0.7"

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

[dev-dependencies.zstd]
version = "0.13"
