# 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.0"
name = "rpstate"
version = "0.4.2"
authors = ["Tam1SH <ignatternyev54@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Type-safe reactive persistence for Rust GUI apps"
readme = "README.md"
license = "MIT"
repository = "https://github.com/Tam1SH/rpstate"
resolver = "2"

[features]
default = ["redb"]
json = []
redb = [
    "dep:redb",
    "dep:rmp-serde",
]

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

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

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

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

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

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

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

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

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

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

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

[dependencies.arc-swap]
version = "1.9.1"

[dependencies.bytes]
version = "1.11.1"

[dependencies.inventory]
version = "0.3.24"

[dependencies.petgraph]
version = "0.8.3"

[dependencies.redb]
version = "4.1.0"
optional = true

[dependencies.rmp-serde]
version = "1.3.1"
optional = true

[dependencies.rpstate-macros]
version = "0.4.2"

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

[dependencies.serde_json]
version = "1.0.149"

[dependencies.thiserror]
version = "2.0.18"

[dependencies.tracing]
version = "0.1.44"

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

[dev-dependencies.macrotest]
version = "1.2.1"

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

[dev-dependencies.rand]
version = "0.10.1"

[dev-dependencies.rayon]
version = "1.12.0"

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

[dev-dependencies.tracing-test]
version = "0.2.6"
features = ["no-env-filter"]

[dev-dependencies.trybuild]
version = "1.0.116"
