# 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 = "2021"
name = "chem-eq"
version = "0.2.0"
description = "Parse chemical equations and balance, get mol ratios and use ΔH"
homepage = "https://github.com/BeaconBrigade/lcp-sim/tree/master/crates/chem-eq"
documentation = "https://docs.rs/chem-eq"
readme = "README.md"
license = "GPL-3.0-only"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[[example]]
name = "parse"

[[example]]
name = "balance"
required-features = ["balance"]

[dependencies.itertools]
version = "0.10.5"

[dependencies.mendeleev]
version = "0.5.0"

[dependencies.ndarray]
version = "0.15.6"
optional = true

[dependencies.nom]
version = "7.1.1"

[dependencies.num]
version = "0.4.0"
optional = true

[dependencies.thiserror]
version = "1.0.37"

[features]
balance = [
    "dep:ndarray",
    "dep:num",
]
default = ["balance"]
