[package]
name = "atomcode-daemon"
version.workspace = true
edition.workspace = true
license.workspace = true

[lib]
name = "atomcode_daemon"
path = "src/lib.rs"

[[bin]]
name = "atomcode-daemon"
path = "src/main.rs"

[dependencies]
atomcode-core = { path = "../atomcode-core" }
atomcode-telemetry = { path = "../atomcode-telemetry" }

# HTTP
axum = { version = "0.7", features = ["macros"] }
tokio = { version = "1", features = ["full"] }
tokio-stream = "0.1"
tower-http = { version = "0.5", features = ["cors"] }
futures = "0.3"

# Serialization
serde = { version = "1", features = ["derive"] }
serde_json = "1"

# WebUI static embedding
rust-embed = { version = "8", features = ["mime-guess"] }
mime_guess = "2"

# Async trait support
async-trait = "0.1"

# Utils
dirs = "5"
anyhow = "1"
uuid = { version = "1", features = ["v4"] }
tokio-util = "0.7"
regex = "1"
tracing = "0.1"
# 远程访问二维码(/tunnel/status 的 SVG)
qrcode = { version = "0.14", default-features = false, features = ["svg"] }

[dev-dependencies]
atomcode-telemetry = { path = "../atomcode-telemetry", features = ["test-util"] }

[target.'cfg(target_os = "windows")'.dependencies]
windows-sys = { version = "0.61", features = ["Win32_System_Console"] }