# 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.89"
name = "hugr-model"
version = "0.25.3"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Data model for Quantinuum's HUGR intermediate representation"
homepage = "https://github.com/quantinuum/hugr"
documentation = "https://docs.rs/hugr-model/"
readme = "README.md"
keywords = [
    "Quantum",
    "Quantinuum",
]
categories = ["compilers"]
license = "Apache-2.0"
repository = "https://github.com/quantinuum/hugr"
resolver = "2"

[features]
pyo3 = ["dep:pyo3"]

[lib]
name = "hugr_model"
path = "src/lib.rs"
bench = false

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

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

[dependencies.base64]
version = "0.22.1"

[dependencies.bumpalo]
version = "3.19.1"
features = ["collections"]

[dependencies.capnp]
version = "0.23.0"

[dependencies.derive_more]
version = "2.1.1"
features = [
    "display",
    "error",
    "from",
]

[dependencies.indexmap]
version = "2.12.1"

[dependencies.itertools]
version = "0.14.0"

[dependencies.ordered-float]
version = "5.0.0"

[dependencies.pest]
version = "2.8.5"

[dependencies.pest_derive]
version = "2.8.5"

[dependencies.pretty]
version = "0.12.5"

[dependencies.pyo3]
version = ">= 0.27.2, < 0.28"
features = ["extension-module"]
optional = true

[dependencies.rustc-hash]
version = "2.1.1"

[dependencies.semver]
version = "1.0.27"

[dependencies.smol_str]
version = "0.3.1"
features = ["serde"]

[dependencies.thiserror]
version = "2.0.17"

[dev-dependencies.insta]
version = "1.46.0"

[dev-dependencies.pretty_assertions]
version = "1.4.1"

[dev-dependencies.proptest]
version = "1.9.0"

[dev-dependencies.proptest-derive]
version = "0.7.0"

[lints.clippy]
debug_assert_with_mut_call = "warn"
too_long_first_doc_paragraph = "warn"

[lints.rust]
missing_docs = "warn"

[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = [
    "cfg(ci_run)",
    "cfg(coverage,coverage_nightly)",
]
