# 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"
rust-version = "1.75"
name = "tket-json-rs"
version = "0.8.3"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Serializable definition of TKET circuits and operations."
homepage = "https://github.com/Quantinuum/tket-json-rs"
documentation = "https://docs.rs/tket-json-rs/"
readme = "README.md"
keywords = [
    "tket",
    "quantinuum",
    "quantum",
]
categories = ["compilers"]
license = "Apache-2.0"
repository = "https://github.com/Quantinuum/tket-json-rs"

[features]
pyo3 = [
    "dep:pyo3",
    "dep:pythonize",
]
schemars = ["dep:schemars"]

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

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

[[test]]
name = "integration"
path = "tests/lib.rs"

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

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

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

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

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

[dependencies.pythonize]
version = ">= 0.27.0, < 0.29"
optional = true

[dependencies.schemars]
version = "1.2.1"
features = ["uuid1"]
optional = true

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

[dependencies.serde_json]
version = "1.0.149"

[dependencies.strum]
version = ">= 0.27, < 0.29"
features = ["derive"]

[dependencies.uuid]
version = ">=1.20, < 1.24"
features = [
    "serde",
    "v4",
]

[dev-dependencies.assert-json-diff]
version = "2.0.2"

[dev-dependencies.itertools]
version = "0.14.0"

[dev-dependencies.pyo3]
version = ">= 0.27.0, < 0.29"

[dev-dependencies.rstest]
version = "0.26.1"

[lints.clippy]
allow_attributes = "warn"
iter_over_hash_type = "warn"
large_enum_variant = "warn"
result_large_err = "warn"

[lints.rust]
missing_docs = "warn"
