# 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.94"
name = "spate-coordination"
version = "0.1.0"
authors = ["Marcus Kainth <marcus@kainth.dev>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Distributed work coordination backend for the Spate pipeline framework: a leader-elected planner enumerates weighted splits into a shared low-latency store (NATS JetStream KV) and publishes a desired assignment per instance; workers lease and heartbeat what they are assigned, cooperatively drain what they are not, and commit progress through epoch-fenced compare-and-swap. Applications should depend on the `spate` facade crate with the `coordination` feature (in-memory store) or `coordination-nats` (the NATS backend)."
homepage = "https://spate.kainth.dev"
readme = "README.md"
keywords = [
"etl",
"pipeline",
"streaming",
"kafka",
"clickhouse",
]
categories = [
"asynchronous",
"data-structures",
]
license = "Apache-2.0"
repository = "https://github.com/spate-etl/spate"
[features]
default = ["nats"]
nats = ["dep:async-nats"]
testing = []
[lib]
name = "spate_coordination"
path = "src/lib.rs"
[[test]]
name = "fault_injection"
path = "tests/fault_injection.rs"
[[test]]
name = "leader_failover"
path = "tests/leader_failover.rs"
[[test]]
name = "multi_worker"
path = "tests/multi_worker.rs"
[[test]]
name = "nats_integration"
path = "tests/nats_integration.rs"
[[test]]
name = "nats_spike"
path = "tests/nats_spike.rs"
[[test]]
name = "revocation_metrics"
path = "tests/revocation_metrics.rs"
[dependencies.async-nats]
version = "0.49"
optional = true
[dependencies.base64]
version = "0.22.1"
[dependencies.foldhash]
version = "0.2"
[dependencies.futures-util]
version = "0.3.31"
features = ["alloc"]
default-features = false
[dependencies.humantime-serde]
version = "1.1"
[dependencies.serde]
version = "1.0.228"
features = ["derive"]
[dependencies.serde_json]
version = "1.0.145"
[dependencies.spate-core]
version = "=0.1.0"
[dependencies.thiserror]
version = "2.0.17"
[dependencies.tokio]
version = "1.52"
features = [
"rt",
"sync",
"time",
"macros",
]
default-features = false
[dependencies.tracing]
version = "0.1.44"
[dependencies.uuid]
version = "1.18.1"
features = ["v4"]
default-features = false
[dev-dependencies.proptest]
version = "1.11"
[dev-dependencies.serde_yaml]
version = "0.10"
package = "yaml_serde"
[dev-dependencies.testcontainers]
version = "0.27"
features = ["blocking"]
[dev-dependencies.tokio]
version = "1.52"
features = [
"macros",
"rt-multi-thread",
]
default-features = false
[lints.clippy]
dbg_macro = "warn"
print_stderr = "warn"
print_stdout = "warn"
undocumented_unsafe_blocks = "warn"
[lints.clippy.all]
level = "warn"
priority = -1
[lints.rust]
missing_debug_implementations = "warn"
missing_docs = "warn"
unreachable_pub = "warn"
unsafe_op_in_unsafe_fn = "deny"
[lints.rust.rust_2018_idioms]
level = "warn"
priority = -1
[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = ["cfg(loom)"]