[workspace]
resolver = "2"
members = [
    "crates/common",
    "crates/server",
    "crates/client-core",
    "crates/client-tauri",
]

[workspace.package]
version = "0.1.0"
edition = "2021"
authors = ["EasyRemote Team"]
license = "MIT"
repository = "https://github.com/easyremote/easyremote"

[workspace.dependencies]
# Async runtime
tokio = { version = "1.35", features = ["full"] }
tokio-util = { version = "0.7", features = ["codec"] }

# Serialization
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
bincode = "1.3"

# Web framework
axum = { version = "0.7", features = ["ws", "macros"] }
tower = "0.4"
tower-http = { version = "0.5", features = ["cors", "fs", "trace"] }
reqwest = { version = "0.11", features = ["json"] }

# Database
sqlx = { version = "0.7", features = ["runtime-tokio", "sqlite", "postgres", "chrono", "uuid"] }
sea-orm = { version = "0.12", features = ["sqlx-sqlite", "sqlx-postgres", "runtime-tokio-native-tls"] }

# Authentication
jsonwebtoken = "9.2"
argon2 = "0.5"
uuid = { version = "1.6", features = ["v4", "serde"] }

# Networking
quinn = "0.10"
webrtc = "0.9"
stun = "0.5"
turn = "0.6"

# Encryption
ring = "0.17"
rustls = "0.22"
rcgen = "0.12"

# Screen capture & encoding
scrap = "0.5"
x264 = "0.5"
vpx-encode = "1.0"

# Image processing
image = "0.24"
turbojpeg = "1.0"

# Input simulation
enigo = "0.2"

# Logging
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter"] }

# Error handling
anyhow = "1.0"
thiserror = "1.0"

# Utils
chrono = { version = "0.4", features = ["serde"] }
rand = "0.8"
base64 = "0.21"
bytes = "1.5"
futures = "0.3"
async-trait = "0.1"

# Config
config = "0.14"
dotenvy = "0.15"

[profile.release]
opt-level = 3
lto = true
codegen-units = 1
