65 lines
1.5 KiB
TOML
65 lines
1.5 KiB
TOML
[package]
|
|
name = "p2p-chat"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
description = "A peer-to-peer chat application with file transfer, built on QUIC via iroh"
|
|
|
|
[dependencies]
|
|
# Networking
|
|
iroh = "0.96"
|
|
iroh-gossip = "0.96"
|
|
n0-future = "0.3"
|
|
|
|
# Async runtime
|
|
tokio = { version = "1", features = ["full"] }
|
|
|
|
# TUI
|
|
ratatui = "0.30"
|
|
crossterm = { version = "0.28", features = ["event-stream"] }
|
|
|
|
# Serialization
|
|
serde = { version = "1", features = ["derive"] }
|
|
serde_json = "1"
|
|
bincode = "1"
|
|
postcard = { version = "1", features = ["alloc"] }
|
|
|
|
# Utilities
|
|
bytes = "1"
|
|
sha2 = "0.10"
|
|
chrono = "0.4"
|
|
uuid = { version = "1", features = ["v4"] }
|
|
anyhow = "1"
|
|
tracing = "0.1"
|
|
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
|
|
clap = { version = "4", features = ["derive"] }
|
|
rand = "0.8"
|
|
|
|
# Configuration
|
|
toml = "0.7"
|
|
directories = "5.0"
|
|
|
|
# Media
|
|
pipewire = "0.9"
|
|
libspa = "0.9"
|
|
songbird = { version = "0.4", features = ["builtin-queue"] }
|
|
audiopus = "0.2"
|
|
crossbeam-channel = "0.5"
|
|
axum = { version = "0.8.8", features = ["ws"] }
|
|
tokio-stream = "0.1.18"
|
|
rust-embed = "8.11.0"
|
|
futures = "0.3.31"
|
|
tower-http = { version = "0.6.8", features = ["fs", "cors"] }
|
|
mime_guess = "2.0.5"
|
|
|
|
[profile.dev]
|
|
opt-level = 0
|
|
debug = true
|
|
|
|
[profile.release]
|
|
opt-level = 3 # Maximum optimization
|
|
lto = "fat" # Full link-time optimization across all crates
|
|
codegen-units = 1 # Single codegen unit for best optimization (slower compile)
|
|
panic = "abort" # Smaller binary, no unwinding overhead
|
|
strip = true # Strip debug symbols from binary
|
|
overflow-checks = false
|