# 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.78"
name = "causal"
version = "0.8.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A deterministic, event-driven coordination layer where machines decide, effects execute, and transactions define authority"
readme = "README.md"
license = "MIT"
repository = "https://github.com/crcn/causal-rs"

[features]
default = ["macros"]
macros = ["dep:causal_core_macros"]

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

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

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

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

[dependencies.anyhow]
version = "1.0"

[dependencies.async-trait]
version = "0.1"

[dependencies.causal_core_macros]
version = "0.8.0"
optional = true

[dependencies.chrono]
version = "0.4"
features = ["serde"]

[dependencies.dashmap]
version = "6.1"

[dependencies.futures]
version = "0.3"

[dependencies.parking_lot]
version = "0.12"

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

[dependencies.serde_json]
version = "1.0"

[dependencies.thiserror]
version = "2.0"

[dependencies.tokio]
version = "1.49"
features = [
    "sync",
    "rt",
    "time",
    "macros",
]

[dependencies.tracing]
version = "0.1"

[dependencies.uuid]
version = "1.20"
features = [
    "v4",
    "v5",
    "serde",
]

[dev-dependencies.fastrand]
version = "2.3"

[dev-dependencies.tokio]
version = "1.49"
features = [
    "sync",
    "rt",
    "time",
    "macros",
    "rt-multi-thread",
    "macros",
    "time",
]

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