From bd704881145d3586f9a3cf9b171121b02e54f1ee Mon Sep 17 00:00:00 2001 From: Robin Krahl Date: Thu, 23 Jan 2020 14:04:42 +0100 Subject: Use envy to parse environment variables for Config This patch uses the envy crate to parse the environment. A variable NITROCLI_KEY can be used to overwrite the configuration for *key*. This has the side effect that the NITROCLI_NO_CACHE variable is evaluated as a boolean variable (instead of only checking whether it is set). We also accept two new variables, NITROCLI_MODEL and NITROCLI_VERBOSITY. --- Cargo.toml | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Cargo.toml') diff --git a/Cargo.toml b/Cargo.toml index d652cba..493e0c5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -52,9 +52,15 @@ version = "1.0" [dependencies.base32] version = "0.4.0" +[dependencies.envy] +version = "0.4.1" + [dependencies.libc] version = "0.2" +[dependencies.merge] +version = "0.1" + [dependencies.nitrokey] version = "0.7.1" -- cgit v1.2.1