# 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 = "tirea-state"
version = "0.3.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Typed view + JSON patch library for deterministic immutable state management"
readme = false
keywords = [
    "state",
    "json-patch",
    "immutable",
    "deterministic",
]
categories = ["data-structures"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/tirea-ai/tirea"

[features]
default = []
derive = ["tirea-state-derive"]

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[dependencies.serde_json]
version = "1"

[dependencies.thiserror]
version = "2"

[dependencies.tirea-state-derive]
version = "0.3.0"
optional = true

[dependencies.tokio]
version = "1"
features = ["sync"]
default-features = false

[dev-dependencies.criterion]
version = "0.5"
features = ["html_reports"]

[dev-dependencies.serde]
version = "1"
features = [
    "derive",
    "derive",
]

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

[dev-dependencies.tirea-state-derive]
version = "0.3.0"

[dev-dependencies.tokio]
version = "1"
features = [
    "rt",
    "macros",
]
default-features = false

[lints.clippy]
all = "warn"

[lints.rust]
missing_docs = "warn"
unsafe_code = "forbid"
