[workspace]
resolver = "3"

[workspace.package]
edition = "2024"
version = "0.1.0"

[workspace.dependencies]
serde = { version = "1", features = ["derive"] }
serde_json = "1"
uuid = { version = "1", features = ["v4", "serde"] }
time = { version = "0.3.47", features = ["local-offset", "parsing", "formatting", "macros"] }
tokio = { version = "1", features = ["full"] }
reqwest = { version = "0.12", default-features = false, features = ["json", "multipart", "rustls-tls"] }
tracing = "0.1"
toml = "0.8"

[package]
name = "doctate-desktop"
version.workspace = true
edition.workspace = true
description = "Desktop dictation client for the doctate medical dictation system"

[[bin]]
name = "doctate"
path = "src/main.rs"

[dependencies]
doctate-common = { path = "../../common" }
eframe = "0.28"
reqwest = { workspace = true }
serde = { workspace = true }
serde_json = { workspace = true }
toml = { workspace = true }
tokio = { workspace = true }
time = { workspace = true }
tracing = { workspace = true }
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
uuid = { workspace = true }
directories = "5"
thiserror = "1"
webbrowser = "1"
which = "6"

[target.'cfg(unix)'.dependencies]
libc = "0.2"

[dev-dependencies]
tempfile = "3"
tokio = { workspace = true, features = ["test-util"] }
wiremock = "0.6"
filetime = "0.2"
