From ae9550ce23bbc85b05669fe5ec4406c8a67417ec Mon Sep 17 00:00:00 2001 From: LUXEY Adrien Date: Sat, 14 Aug 2021 19:12:18 +0200 Subject: New configuration parsing using envy. Added minimal functionnality for the future ACME parameters. Tests written and passing. WIP: added envy dependncy and ConfigOpts structs that will constitute Diplonat's configuration WIP: ConfigOpts from_env() and validate() methods written. No API change (the env names remain unchanged)! Now need to use our new ConfigOpts struct instead of Environment, and update references to the environment variables in the code. WIP: RuntimeConfig with business logic done. Tests written, but they are all running from the same process - setting environment variables in each test produces incoherent results. Another solution for testing is needed. WIP: tests are fully written using 'from_iter' and all passing --- Cargo.toml | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'Cargo.toml') diff --git a/Cargo.toml b/Cargo.toml index a2a9667..b99d81a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -7,15 +7,16 @@ edition = "2018" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -reqwest = { version = "0.10", features = ["json"] } +anyhow = "1.0.28" +envy = "0.4" +futures = "0.3.5" igd = { version = "0.10.0", features = ["aio"] } +iptables = "0.2.2" log = "0.4" pretty_env_logger = "0.4" -tokio = "0.2" -futures = "0.3.5" +regex = "1" +reqwest = { version = "0.10", features = ["json"] } serde = { version = "1.0.107", features = ["derive"] } -serde_json = "1.0.53" serde-lexpr = "0.1.1" -anyhow = "1.0.28" -iptables = "0.2.2" -regex = "1" +serde_json = "1.0.53" +tokio = "0.2" -- cgit v1.2.3