refactor(sender, receiver, relay): changed use of .env file to a config file

added support for a config file. under linux this will be under
XDG_HOME/.config/caesar with name caesar.toml
This commit is contained in:
Patryk Hegenberg 2024-05-09 15:22:48 +02:00
parent bb492aa962
commit aa183a30bd
5 changed files with 226 additions and 46 deletions

View file

@ -17,7 +17,9 @@ serde_json = { version = "1.0" }
serde = { version = "1.0", features = ["derive"] }
tracing = "0.1.40"
tracing-subscriber = { version = "0.3.18", features = ["env-filter"] }
dotenv = { version = "0.15.0", features = ["clap", "cli"] }
clap = { version = "4.5.4", features = ["derive"] }
axum = { version = "0.7.5", features = ["ws"] }
axum-client-ip = "0.6.0"
confy = "0.6.1"
dotenvy = { version = "0.15.7", features = ["clap", "cli"] }
lazy_static = "1.4.0"