# 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.86"
name = "pulsate-cluster"
version = "0.2.2"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Clustering: membership, leader/peer roles, shared state."
readme = "README.md"
license = "Apache-2.0"
repository = "https://github.com/squaretick/pulsate"

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

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

[dependencies.postcard]
version = "1"
features = ["use-std"]
default-features = false

[dependencies.pulsate-core]
version = "0.2.2"

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

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

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

[lints.clippy]
doc_markdown = "allow"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"

[lints.clippy.all]
level = "warn"
priority = -1

[lints.clippy.pedantic]
level = "warn"
priority = -1

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