c441377749
Introduces a `Config` struct to manage client settings, including server URL and API key. This configuration is stored in a TOML file following OS-standard conventions. The `directories` crate is used to determine the correct path for the configuration file across different operating systems. The `thiserror` crate is used for custom error handling related to configuration loading and saving. Added unit tests to verify the configuration loading and saving logic.
19 lines
472 B
TOML
19 lines
472 B
TOML
[package]
|
|
name = "doctate-desktop"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
description = "Desktop dictation client for the doctate medical dictation system"
|
|
|
|
[dependencies]
|
|
doctate-common = { path = "../doctate-common" }
|
|
eframe = "0.28"
|
|
serde = { workspace = true }
|
|
toml = { workspace = true }
|
|
tracing = { workspace = true }
|
|
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
|
|
directories = "5"
|
|
thiserror = "1"
|
|
|
|
[dev-dependencies]
|
|
tempfile = "3"
|