# 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"
name = "molecular-formulas"
version = "0.1.7"
authors = ["Earth Metabolome Initiative"]
build = false
include = [
    "src/**/*",
    "Cargo.toml",
    "README.md",
    "LICENSE",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A Rust crate for parsing, manipulating, and analyzing molecular formulas."
readme = "README.md"
keywords = [
    "chemistry",
    "molecular-formulas",
    "elements",
    "isotopes",
    "science",
]
categories = [
    "science",
    "database",
]
license = "MIT"
repository = "https://github.com/earth-metabolome-initiative/molecular-formulas"

[features]
arbitrary = [
    "dep:arbitrary",
    "elements_rs/arbitrary",
]
default = ["serde"]
fuzzing = ["arbitrary"]
serde = ["dep:serde"]

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

[dependencies.arbitrary]
version = "1.4"
features = ["derive"]
optional = true

[dependencies.elements_rs]
version = "0.2.4"
features = ["serde"]

[dependencies.num-traits]
version = "0.2"

[dependencies.serde]
version = "1.0"
optional = true

[dependencies.thiserror]
version = "2.0.18"

[dev-dependencies.comfy-table]
version = "7.2.2"

[dev-dependencies.criterion]
version = "0.8.2"

[dev-dependencies.csv]
version = "1.1"

[dev-dependencies.indicatif]
version = "0.18.4"

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

[dev-dependencies.strum]
version = "0.28.0"
features = ["derive"]

[lints.clippy]
clone_on_copy = "forbid"
doc_markdown = "allow"
missing_panics_doc = "allow"
new_ret_no_self = "allow"
should_panic_without_expect = "allow"
struct_excessive_bools = "allow"
unreadable_literal = "allow"

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

[lints.rust]
deprecated = "deny"
missing_docs = "forbid"
unconditional_recursion = "forbid"
unreachable_patterns = "forbid"
unused_import_braces = "forbid"
unused_macro_rules = "forbid"
unused_must_use = "forbid"

[lints.rustdoc]
bare_urls = "forbid"
broken_intra_doc_links = "forbid"
invalid_codeblock_attributes = "forbid"
invalid_html_tags = "forbid"
invalid_rust_codeblocks = "forbid"
missing_crate_level_docs = "forbid"
redundant_explicit_links = "forbid"
unescaped_backticks = "forbid"

[profile.release]
opt-level = 3
lto = true
codegen-units = 1
debug = 2
