# 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-types"
version = "0.3.1"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Types used in the memberlist crate."
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_types"
path = "src/lib.rs"

[dependencies.async-lock]
version = "3"
optional = true

[dependencies.base64]
version = "0.22"
optional = true

[dependencies.byteorder]
version = "1"

[dependencies.bytes]
version = "1"

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

[dependencies.futures]
version = "0.3"

[dependencies.indexmap]
version = "2"
optional = true

[dependencies.ipnet]
version = "2"

[dependencies.metrics]
version = "0.24"
optional = true

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

[dependencies.paste]
version = "1"

[dependencies.rkyv]
version = "0.8"
features = [
    "smol_str-0_3",
    "bytes-1",
]
optional = true

[dependencies.serde]
version = "1"
features = [
    "derive",
    "rc",
]
optional = true

[dependencies.smallvec-wrapper]
version = "0.2"
features = [
    "const_new",
    "either",
]

[dependencies.smol_str]
version = "0.3"

[dependencies.thiserror]
version = "2"

[dependencies.transformable]
version = "0.2"
features = [
    "smol_str03",
    "bytes1",
    "bytes1",
    "smol_str03",
]

[dependencies.viewit]
version = "0.1.5"

[dev-dependencies.rand]
version = "0.9"

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

[features]
default = []
encryption = [
    "async-lock",
    "indexmap",
]
metrics = ["dep:metrics"]
rkyv = [
    "dep:rkyv",
    "smallvec-wrapper/rkyv",
    "nodecraft/rkyv",
]
serde = [
    "dep:serde",
    "smol_str/serde",
    "smallvec-wrapper/serde",
    "base64",
    "ipnet/serde",
    "bytes/serde",
    "nodecraft/serde",
    "indexmap?/serde",
]
