# 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.88"
name = "slancha-wire"
version = "0.6.8"
authors = ["Paul Logan <paul@slancha.ai>"]
build = false
exclude = [
    "CLAUDE.md",
    "AGENTS.md",
    ".claude/",
    ".gitnexus/",
    ".planning/",
    "SESSION_LOG_*.md",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Magic-wormhole for AI agents — bilateral signed-message bus over a mailbox relay"
homepage = "https://github.com/SlanchaAi/wire"
documentation = "https://github.com/SlanchaAi/wire#readme"
readme = "README.md"
keywords = [
    "agent",
    "p2p",
    "ed25519",
    "wormhole",
    "mailbox",
]
categories = [
    "command-line-utilities",
    "cryptography",
    "network-programming",
]
license = "AGPL-3.0-or-later AND Apache-2.0 AND MIT"
repository = "https://github.com/SlanchaAi/wire"

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

[[bin]]
name = "wire"
path = "src/bin/wire.rs"

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

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

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

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

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

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

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

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

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

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

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

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

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

[dependencies.anyhow]
version = "1"

[dependencies.axum]
version = "0.7"

[dependencies.base64]
version = "0.22"

[dependencies.chacha20poly1305]
version = "0.10"

[dependencies.clap]
version = "4"
features = ["derive"]

[dependencies.dirs]
version = "5"

[dependencies.ed25519-dalek]
version = "2"
features = ["rand_core"]

[dependencies.fs2]
version = "0.4"

[dependencies.futures]
version = "0.3"

[dependencies.hex]
version = "0.4"

[dependencies.hkdf]
version = "0.12"

[dependencies.hmac]
version = "0.12"

[dependencies.hostname]
version = "0.4"

[dependencies.rand]
version = "0.8"

[dependencies.rand_chacha]
version = "0.3"

[dependencies.reqwest]
version = "0.12"
features = [
    "json",
    "rustls-tls-native-roots",
    "blocking",
    "stream",
]
default-features = false

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

[dependencies.serde_json]
version = "1"

[dependencies.sha2]
version = "0.10"

[dependencies.spake2]
version = "0.4"

[dependencies.thiserror]
version = "1"

[dependencies.time]
version = "0.3"
features = [
    "formatting",
    "macros",
    "parsing",
    "serde",
]

[dependencies.tokio]
version = "1"
features = [
    "macros",
    "rt-multi-thread",
    "signal",
    "sync",
    "fs",
    "io-util",
]

[dependencies.tokio-stream]
version = "0.1"

[dependencies.tower]
version = "0.5"

[dependencies.tower_governor]
version = "0.4"

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

[dev-dependencies.tempfile]
version = "3"

[profile.release]
opt-level = 3
lto = "thin"
codegen-units = 1
strip = true
