description="Small private mesh networks: persistent agent identity, deterministic network spaces, an iroh control plane, signed state and a local DNS view."
readme="../../README.md"
keywords=["mesh","p2p","iroh","networking"]
categories=["network-programming"]
edition.workspace=true
rust-version.workspace=true
license.workspace=true
repository.workspace=true
[lib]
name="tsunagi"
[features]
default=[]
# A real TUN device, so a plugin can carry actual IP traffic. On Linux it
# needs CAP_NET_ADMIN; on Windows the process must run elevated and
# `wintun.dll` must be reachable. Without either the in-memory device serves
# tests. The platform-specific dependencies are declared per target, so
# enabling this only pulls what the target it is built for actually uses.
tun-device=[
"dep:tun",
"dep:rtnetlink",
"dep:caps",
"dep:futures-util",
]
# Telling the operating system where to send its DNS questions. systemd-resolved
# on Linux, the Name Resolution Policy Table on Windows; the zone and the
# server work without it either way.
dns-publish=["dep:zbus"]
# The test harness in `testing`, for this crate's own tests and for a
# protocol crate's. Not on by default: it is only of use to a test.
testing=["dep:tempfile","dep:tracing-subscriber"]
[dependencies]
arc-swap="1.9"
iroh.workspace=true
# `net` for the local control interface: a Unix socket on Unix, a named pipe
# on Windows. Both live behind the same `net` feature.
tokio={workspace=true,features=["net"]}
tokio-stream="0.1"
serde.workspace=true
postcard.workspace=true
bytes.workspace=true
thiserror.workspace=true
tracing.workspace=true
hex.workspace=true
data-encoding.workspace=true
rusqlite={version="0.40",features=["bundled"]}
hkdf="0.13"
hmac="0.13"
sha2="0.11"
subtle="2.6"
zeroize={version="1.9",features=["derive"]}
rand="0.10"
# Already in the tree through iroh. A packet codec, not a DNS server: the
# zone logic is ours and a full server framework would be a large dependency