# 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 = "cruster"
version = "0.0.20"
authors = ["Michael Arnaldi <michael.arnaldi@effectful.co>"]
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A Rust framework for building distributed, stateful entity systems with durable workflows"
homepage = "https://github.com/mikearnaldi/cruster"
readme = "README.md"
keywords = [
    "distributed",
    "actor",
    "cluster",
    "workflow",
    "durable",
]
categories = [
    "asynchronous",
    "network-programming",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/mikearnaldi/cruster"

[features]
consistent-hash = ["dep:hashring"]
default = []
etcd = ["dep:etcd-client"]
otel = [
    "dep:opentelemetry",
    "dep:opentelemetry_sdk",
    "dep:opentelemetry-otlp",
    "dep:tracing-opentelemetry",
    "dep:tracing-subscriber",
]
parallel = ["dep:rayon"]

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

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

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

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

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

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

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

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

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

[dependencies.cron]
version = "0.13"

[dependencies.cruster-macros]
version = "0.0.20"

[dependencies.dashmap]
version = "6"

[dependencies.etcd-client]
version = "0.14"
optional = true

[dependencies.futures]
version = "0.3"

[dependencies.hashring]
version = "0.3"
optional = true

[dependencies.opentelemetry]
version = "0.27"
features = ["trace"]
optional = true
default-features = false

[dependencies.opentelemetry-otlp]
version = "0.27"
features = [
    "trace",
    "grpc-tonic",
]
optional = true
default-features = false

[dependencies.opentelemetry_sdk]
version = "0.27"
features = [
    "trace",
    "rt-tokio",
]
optional = true
default-features = false

[dependencies.parking_lot]
version = "0.12"

[dependencies.prometheus]
version = "0.13"

[dependencies.prost]
version = "0.13"

[dependencies.rayon]
version = "1.10"
optional = true

[dependencies.rmp-serde]
version = "1"

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

[dependencies.serde_json]
version = "1"

[dependencies.sqlx]
version = "0.8"
features = [
    "runtime-tokio",
    "postgres",
    "tls-rustls",
    "migrate",
    "chrono",
]

[dependencies.thiserror]
version = "1"

[dependencies.tokio]
version = "1"
features = ["full"]

[dependencies.tokio-stream]
version = "0.1"
features = ["sync"]

[dependencies.tokio-util]
version = "0.7"

[dependencies.tonic]
version = "0.12"

[dependencies.tracing]
version = "0.1"

[dependencies.tracing-opentelemetry]
version = "0.28"
optional = true

[dependencies.tracing-subscriber]
version = "0.3"
features = ["env-filter"]
optional = true

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

[dev-dependencies.etcd-client]
version = "0.14"

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

[dev-dependencies.testcontainers]
version = "0.23"

[dev-dependencies.testcontainers-modules]
version = "0.11"
features = ["postgres"]

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

[build-dependencies.tonic-build]
version = "0.12"
