# 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 = "powerio-matrix"
version = "0.3.1"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Sparse matrices and graph views for power system case files, built on powerio."
homepage = "https://eigenergy.github.io/powerio/"
documentation = "https://docs.rs/powerio-matrix"
readme = "README.md"
keywords = [
    "matpower",
    "sparse",
    "ptdf",
    "dc-opf",
]
categories = [
    "science",
    "mathematics",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/eigenergy/powerio"
resolver = "2"

[package.metadata.docs.rs]
all-features = true

[features]
gridfm = [
    "dep:arrow",
    "dep:parquet",
]
kkt = []

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

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

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

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

[dependencies.arrow]
version = "59"
optional = true
default-features = false

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

[dependencies.parquet]
version = "59"
features = [
    "arrow",
    "snap",
]
optional = true
default-features = false

[dependencies.powerio]
version = "0.3.1"

[dependencies.rand]
version = "0.9"

[dependencies.rand_chacha]
version = "0.9"

[dependencies.rayon]
version = "1"

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

[dependencies.serde_json]
version = "1"

[dependencies.sha2]
version = "0.10"

[dependencies.sprs]
version = "0.11"
default-features = false

[dependencies.walkdir]
version = "2"

[dev-dependencies.approx]
version = "0.5"

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

[lints.clippy]
cast_possible_truncation = "allow"
cast_precision_loss = "allow"
cast_sign_loss = "allow"
doc_markdown = "allow"
missing_errors_doc = "allow"
module_name_repetitions = "allow"
must_use_candidate = "allow"
similar_names = "allow"

[lints.clippy.pedantic]
level = "warn"
priority = -1
