# 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.81.0"
name = "memberlist"
version = "0.5.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A highly customable, adaptable, async runtime agnostic Gossip protocol which helps manage cluster membership and member failure detection."
homepage = "https://github.com/al8n/memberlist"
readme = "README.md"
keywords = [
    "swim",
    "gossip",
    "service-discovery",
]
categories = [
    "network-programming",
    "asynchronous",
]
license = "MPL-2.0"
repository = "https://github.com/al8n/memberlist"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
]

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

[[test]]
name = "memberlist"
path = "tests/main.rs"
required-features = ["test"]

[dependencies.agnostic]
version = "0.7"
optional = true

[dependencies.agnostic-lite]
version = "0.5"
features = ["time"]

[dependencies.memberlist-core]
version = "0.5"
default-features = false

[dependencies.memberlist-net]
version = "0.5"
optional = true
default-features = false

[dependencies.memberlist-quic]
version = "0.5"
optional = true
default-features = false

[dependencies.nodecraft]
version = "0.6"
features = [
    "transformable",
    "async",
    "resolver",
    "agnostic",
]

[dependencies.smol_str]
version = "0.3"

[dependencies.tracing]
version = "0.1"

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

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

[features]
async-std = ["agnostic/async-std"]
compression = [
    "memberlist-net?/compression",
    "memberlist-quic?/compression",
]
default = [
    "tokio",
    "compression",
    "encryption",
    "dns",
    "tcp",
    "quic",
]
dns = [
    "memberlist-net?/dns",
    "memberlist-quic?/dns",
    "agnostic/dns",
]
dns-native-certs = [
    "memberlist-net?/dns-native-certs",
    "memberlist-quic?/dns-native-certs",
]
dns-over-h3 = [
    "memberlist-net?/dns-over-h3",
    "memberlist-quic?/dns-over-h3",
]
dns-over-https-rustls = [
    "memberlist-net?/dns-over-https-rustls",
    "memberlist-quic?/dns-over-https-rustls",
]
dns-over-native-tls = [
    "memberlist-net?/dns-over-native-tls",
    "memberlist-quic?/dns-over-native-tls",
]
dns-over-openssl = [
    "memberlist-net?/dns-over-openssl",
    "memberlist-quic?/dns-over-openssl",
]
dns-over-quic = [
    "memberlist-net?/dns-over-quic",
    "memberlist-quic?/dns-over-quic",
]
dns-over-rustls = [
    "memberlist-net?/dns-over-rustls",
    "memberlist-quic?/dns-over-rustls",
]
dns-webpki-roots = [
    "memberlist-net?/dns-webpki-roots",
    "memberlist-quic?/dns-webpki-roots",
]
dnssec = [
    "memberlist-net?/dnssec",
    "memberlist-quic?/dnssec",
]
dnssec-openssl = [
    "memberlist-net?/dnssec-openssl",
    "memberlist-quic?/dnssec-openssl",
]
dnssec-ring = [
    "memberlist-net?/dnssec-ring",
    "memberlist-quic?/dnssec-ring",
]
encryption = [
    "memberlist-net?/encryption",
    "memberlist-quic?/encryption",
    "memberlist-core/encryption",
]
metrics = [
    "memberlist-core/metrics",
    "memberlist-net?/metrics",
    "memberlist-quic?/metrics",
]
native-tls = [
    "memberlist-net/native-tls",
    "tcp",
]
net = [
    "memberlist-net",
    "agnostic/net",
]
quic = [
    "memberlist-quic",
    "agnostic/quinn",
]
quinn = [
    "memberlist-quic/quinn",
    "quic",
]
s2n = [
    "memberlist-quic/s2n",
    "quic",
]
serde = [
    "memberlist-core/serde",
    "memberlist-net?/serde",
    "memberlist-quic?/serde",
]
smol = ["agnostic/smol"]
tcp = ["net"]
test = [
    "memberlist-core/test",
    "memberlist-net?/test",
    "memberlist-quic?/test",
]
tls = [
    "memberlist-net/tls",
    "tcp",
]
tokio = ["agnostic/tokio"]
