[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.9" # Configuration toml = "0.7" directories = "5.0" # Media songbird = { version = "0.4", features = ["builtin-queue"] } audiopus = "0.2" rfd = "0.14" iced = { version = "0.13", features = ["image", "wgpu", "tokio"] } iced_futures = "0.13" 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" hex = "0.4.3" cpal = { version = "0.17.1", features = ["jack"] } xcap = "0.8.2" ashpd = "0.9" image = "0.25.9" ringbuf = "0.4.8" nnnoiseless = "0.5" dashmap = "5" gstreamer = "0.24.4" gstreamer-app = "0.24.4" gstreamer-video = "0.24.4" [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