# 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"
name = "enlace"
version = "0.2.2"
build = false
publish = true
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Encrypted mailbox and latest-value slot fan-out."
readme = false
license = "MIT"
repository = "https://github.com/paltaio/enlace"

[features]
all-transports = [
    "http",
    "dht",
    "pkarr",
    "iroh",
]
default = ["all-transports"]
dht = ["dep:mainline"]
fuzzing = ["http"]
http = ["dep:reqwest"]
iroh = [
    "dep:iroh",
    "dep:iroh-gossip",
]
pkarr = ["dep:pkarr"]

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

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

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

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

[dependencies.base64]
version = "=0.22.1"
features = ["alloc"]
default-features = false

[dependencies.chacha20poly1305]
version = "=0.10.1"
features = [
    "std",
    "getrandom",
]
default-features = false

[dependencies.ed25519-dalek]
version = "=2.2.0"
features = [
    "fast",
    "std",
    "zeroize",
]
default-features = false

[dependencies.futures-core]
version = "=0.3.32"
default-features = false

[dependencies.hkdf]
version = "=0.12.4"
default-features = false

[dependencies.iroh]
version = "=0.98.2"
features = ["tls-ring"]
optional = true
default-features = false

[dependencies.iroh-gossip]
version = "=0.98.0"
features = ["net"]
optional = true
default-features = false

[dependencies.lru]
version = "=0.18.0"
default-features = false

[dependencies.mainline]
version = "=6.1.2"
optional = true

[dependencies.pkarr]
version = "=5.0.4"
optional = true

[dependencies.reqwest]
version = "=0.13.3"
features = ["rustls"]
optional = true
default-features = false

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

[dependencies.serde]
version = "=1.0.228"
features = ["derive"]
default-features = false

[dependencies.sha2]
version = "=0.10.9"
default-features = false

[dependencies.sled]
version = "=0.34.7"

[dependencies.subtle]
version = "=2.6.1"
default-features = false

[dependencies.tokio]
version = "=1.52.1"
features = [
    "rt-multi-thread",
    "macros",
    "sync",
    "io-util",
    "time",
]
default-features = false

[dependencies.tokio-stream]
version = "=0.1.18"
features = ["sync"]
default-features = false

[dependencies.tracing]
version = "=0.1.44"
default-features = false

[dependencies.url]
version = "=2.5.8"
default-features = false

[dependencies.x25519-dalek]
version = "=2.0.1"
features = [
    "static_secrets",
    "zeroize",
]
default-features = false

[dependencies.zeroize]
version = "=1.8.2"

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