122 lines
3.1 KiB
TOML
122 lines
3.1 KiB
TOML
#
|
|
# Copyright 2019-2022 Signal Messenger, LLC
|
|
# SPDX-License-Identifier: AGPL-3.0-only
|
|
#
|
|
|
|
[package]
|
|
name = "calling_backend"
|
|
version.workspace = true
|
|
authors = ["Calling Team <callingteam@signal.org>"]
|
|
edition = "2021"
|
|
description = "Media forwarding server for group calls."
|
|
license = "AGPL-3.0-only"
|
|
|
|
[dependencies]
|
|
mrp = { git = "https://github.com/signalapp/ringrtc", tag = "v2.59.1" }
|
|
calling_common = { path = "../common" }
|
|
metrics = { path = "../metrics" }
|
|
|
|
# For error handling
|
|
anyhow = "1.0.100"
|
|
thiserror = "2.0.17"
|
|
|
|
# For logging and command line operations
|
|
log = "0.4.29"
|
|
env_logger = "0.11.8"
|
|
clap = { version = "4.5.53", features = ["derive"] }
|
|
|
|
# For runtime and threading
|
|
tokio = { version = "1.48.0", features = ["full"] }
|
|
parking_lot = { version = "0.12.5", features = ["deadlock_detection"] }
|
|
once_cell = "1.21.3"
|
|
futures = "0.3.31"
|
|
core_affinity = "0.8.3"
|
|
async-trait = "0.1.89"
|
|
|
|
# For http
|
|
axum = { version = "0.7.9" }
|
|
axum-extra = { version = "0.9.6", default-features = false, features = ["typed-header", "tracing"] }
|
|
hyper = { version = "1.8.1", features = ["full"] }
|
|
reqwest = { version = "0.12.26", default-features = false, features = ["json"] }
|
|
tower = "0.5.2"
|
|
|
|
# For general conversions
|
|
byteorder = "1.5.0"
|
|
hex = { version = "0.4.3", features = ["serde"] }
|
|
serde = { version = "1.0.228", features = ["derive"] }
|
|
serde_json = "1.0.145"
|
|
serde_with = { version = "3.16.1", features = ["base64"] }
|
|
prost = "0.14.1"
|
|
strum = "0.26.3"
|
|
strum_macros = "0.26.4"
|
|
|
|
# For common
|
|
sha2 = "0.10.9"
|
|
|
|
# For ICE
|
|
crc = "3.4.0"
|
|
hmac = "0.12.1"
|
|
sha-1 = "0.10.1"
|
|
|
|
# For SRTP key derivation using DHE
|
|
hkdf = "0.12.4"
|
|
rand = "0.8.5"
|
|
x25519-dalek = { version = "2.0.1" }
|
|
|
|
# For (S)RTP
|
|
aes = "0.8.4"
|
|
aes-gcm = "0.10.3"
|
|
zeroize = "1.8.2"
|
|
|
|
# For congestion control
|
|
async-stream = "0.3.6"
|
|
# For congestion-control-specific helpers
|
|
pin-project = "1.1.10"
|
|
|
|
# For low-level UDP sockets and tracking TCP sockets
|
|
nix = { version = "0.27.1", optional = true, features = ["time", "socket", "event", "signal", "net"] }
|
|
unique_id = "0.1.7"
|
|
|
|
# For current process memory stats
|
|
psutil = { version = "3.3.0", default-features = false, features = ["cpu", "process"] }
|
|
rlimit = "0.10.2"
|
|
|
|
# For TLS sockets in epoll backend
|
|
rustls = "0.23.35"
|
|
|
|
# For endorsements
|
|
libsignal-core = { git = "https://github.com/signalapp/libsignal", tag = "v0.86.7" }
|
|
zkgroup = { git = "https://github.com/signalapp/libsignal", tag = "v0.86.7" }
|
|
bincode = "1.3.3"
|
|
itertools = "0.14.0"
|
|
base64 = "0.22.1"
|
|
|
|
# For rate limiting
|
|
governor = "0.10.2"
|
|
nonzero_ext = "0.3.0"
|
|
|
|
[target.'cfg(target_os="linux")'.dependencies]
|
|
# Only currently needed for metrics (won't build on mac, see https://github.com/rust-lang/rust/issues/115149).
|
|
accounting-allocator = "0.2.0"
|
|
|
|
[build-dependencies]
|
|
prost-build = "0.14.1"
|
|
|
|
[dev-dependencies]
|
|
http = "1.4.0"
|
|
hex-literal = "0.4.1"
|
|
unzip3 = "1.0.0"
|
|
uuid = { version = "1.11.0", features = ["v4"] }
|
|
|
|
tokio = { version = "1.48.0", features = ["test-util"] }
|
|
|
|
# For matching WebRTC's randomness
|
|
rand_distr = "0.4.3"
|
|
|
|
[features]
|
|
default = ["epoll"]
|
|
epoll = ["nix"]
|
|
|
|
[lints.rust]
|
|
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(fuzzing)'] }
|