[package]
edition = "2021"
name = "unb-server"
version = "2.0.3"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "unb inbound server: Node, request/subscribe handlers, catalog, relay orchestration, accept"
readme = false
license = "Apache-2.0"
repository = "https://github.com/Midwess/unb"
[features]
default = [
"hosting",
"observability",
]
hosting = [
"dep:axum",
"dep:http-body-util",
"dep:hyper",
"dep:hyper-util",
"dep:rustls",
"dep:rustls-pemfile",
"dep:rustls-pki-types",
"dep:tokio-rustls",
"unb-client/unix",
"unb-client/webtransport",
"unb-client/wss",
"unb-transport/accept",
"unb-transport/unix",
"unb-transport/webtransport",
"unb-transport/ws",
"unb-transport/wss",
"tokio/net",
"tokio/rt-multi-thread",
]
observability = [
"dep:tracing",
"dep:metrics",
"unb-runtime/observability",
]
[lib]
name = "unb_server"
path = "src/lib.rs"
[[example]]
name = "wt_echo"
path = "examples/wt_echo.rs"
[[test]]
name = "calls"
path = "tests/calls.rs"
[[test]]
name = "connect_fallback"
path = "tests/connect_fallback.rs"
[[test]]
name = "discovery"
path = "tests/discovery.rs"
[[test]]
name = "duplex_load"
path = "tests/duplex_load.rs"
[[test]]
name = "dynamic"
path = "tests/dynamic.rs"
[[test]]
name = "establishment"
path = "tests/establishment.rs"
[[test]]
name = "handlers"
path = "tests/handlers.rs"
[[test]]
name = "health"
path = "tests/health.rs"
[[test]]
name = "ingress"
path = "tests/ingress.rs"
[[test]]
name = "keepalive"
path = "tests/keepalive.rs"
[[test]]
name = "middleware"
path = "tests/middleware.rs"
[[test]]
name = "node_interface"
path = "tests/node_interface.rs"
[[test]]
name = "peer_admission"
path = "tests/peer_admission.rs"
[[test]]
name = "peer_connection"
path = "tests/peer_connection.rs"
[[test]]
name = "relay"
path = "tests/relay.rs"
[[test]]
name = "route_runtime"
path = "tests/route_runtime.rs"
[[test]]
name = "send"
path = "tests/send.rs"
[[test]]
name = "sessions"
path = "tests/sessions.rs"
[[test]]
name = "streaming_bodies"
path = "tests/streaming_bodies.rs"
[[test]]
name = "tls_hosting"
path = "tests/tls_hosting.rs"
[[test]]
name = "topology"
path = "tests/topology.rs"
[[test]]
name = "typed_layers"
path = "tests/typed_layers.rs"
[[test]]
name = "typed_services"
path = "tests/typed_services.rs"
[[test]]
name = "webtransport_smoke"
path = "tests/webtransport_smoke.rs"
[[test]]
name = "ws_smoke"
path = "tests/ws_smoke.rs"
[[bench]]
name = "relay_throughput"
path = "benches/relay_throughput.rs"
harness = false
[dependencies.arc-swap]
version = "1.7"
[dependencies.axum]
version = "0.8.9"
features = [
"ws",
"http1",
"tokio",
]
optional = true
default-features = false
[dependencies.bytes]
version = "1"
[dependencies.fastrand]
version = "2"
[dependencies.futures-util]
version = "0.3.32"
[dependencies.http]
version = "1"
[dependencies.http-body-util]
version = "0.1"
optional = true
[dependencies.hyper]
version = "1"
features = [
"client",
"http1",
]
optional = true
[dependencies.hyper-util]
version = "0.1"
features = [
"tokio",
"server",
"server-auto",
"service",
]
optional = true
[dependencies.metrics]
version = "0.24"
optional = true
[dependencies.n0-future]
version = "0.2.0"
[dependencies.parking_lot]
version = "0.12"
[dependencies.rustls]
version = "0.23"
optional = true
[dependencies.rustls-pemfile]
version = "2"
optional = true
[dependencies.rustls-pki-types]
version = "1"
optional = true
[dependencies.schemars]
version = "1"
[dependencies.serde]
version = "1"
features = ["derive"]
[dependencies.serde_json]
version = "1"
[dependencies.thiserror]
version = "2"
[dependencies.tokio]
version = "1.52.3"
features = [
"rt",
"macros",
"sync",
"time",
]
[dependencies.tokio-rustls]
version = "0.26"
optional = true
[dependencies.tracing]
version = "0.1"
optional = true
[dependencies.unb-client]
version = "2.0.3"
[dependencies.unb-core]
version = "2.0.3"
[dependencies.unb-runtime]
version = "2.0.3"
[dependencies.unb-transport]
version = "2.0.3"
default-features = false
[dev-dependencies.libc]
version = "0.2"
[dev-dependencies.schemars]
version = "1"
[dev-dependencies.tempfile]
version = "3"
[dev-dependencies.tokio]
version = "1.52.3"
features = ["test-util"]
[dev-dependencies.tokio-tungstenite]
version = "0.29.0"
features = ["rustls-tls-native-roots"]
[dev-dependencies.tracing-subscriber]
version = "0.3"
features = ["env-filter"]