# 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"
version = "0.5.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = 'Fast case parsing and conversion: "pandoc for power systems"'
homepage = "https://eigenergy.github.io/powerio/"
documentation = "https://docs.rs/powerio"
readme = "README.md"
keywords = [
    "matpower",
    "parser",
    "lossless",
]
categories = [
    "science",
    "parsing",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/eigenergy/powerio"
resolver = "2"

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[[bench]]
name = "parse"
path = "benches/parse.rs"
harness = false

[dependencies.lexical-core]
version = "1"

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

[dependencies.petgraph]
version = "0.8"

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

[dependencies.serde_json]
version = "1"

[dependencies.thiserror]
version = "2"

[dev-dependencies.criterion]
version = "0.5"
features = ["cargo_bench_support"]
default-features = false

[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
